public abstract class Entity extends Object
RandomWalk
algorithm.Modifier and Type | Field and Description |
---|---|
protected RandomWalk.Context |
context
The shared information.
|
protected Node |
current
The current node the entity is on.
|
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
init(RandomWalk.Context context,
Node start)
Should initialize the entity, starting it on the given node.
|
(package private) abstract void |
step()
Should move the entity from its current node to another.
|
protected double |
weight(Edge e)
The weight of an edge.
|
protected RandomWalk.Context context
public Entity()
void init(RandomWalk.Context context, Node start)
start
- The node on which the entity starts.abstract void step()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses