|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectou3.EventInfo
public class EventInfo
Made to contain information to be spread about events.
Field Summary | |
---|---|
private int |
eventId
The events unique id, used to identify it. |
private int |
nrOfSteps
The number of steps from the current node to the event. |
private Node |
previousNode
The node which is the way from the current node towards the event. |
Constructor Summary | |
---|---|
EventInfo(int eventId,
Node previousNode,
int nrOfSteps)
Creates an EventInfo. |
Method Summary | |
---|---|
EventInfo |
copy()
Returns a copy of the event info being called by this method. |
boolean |
equals(java.lang.Object obj)
|
int |
getEventId()
Returns the events id. |
int |
getNrOfSteps()
Returns the number of steps from the origin of the event. |
Node |
getPreviousNode()
Returns the path towards the origin of the event. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a string with the contents of this EventInfo, for testing purposes. |
void |
update(Node previousNode,
int nrOfSteps)
Changes the path towards and the steps from the origin of the event. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int eventId
private Node previousNode
private int nrOfSteps
Constructor Detail |
---|
public EventInfo(int eventId, Node previousNode, int nrOfSteps)
int
- idPosition
- positionint
- timeCreatedMethod Detail |
---|
public int getEventId()
public Node getPreviousNode()
public int getNrOfSteps()
public void update(Node previousNode, int nrOfSteps)
Node
- previousNodeint
- nrOfStepspublic EventInfo copy()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |