public abstract class AbstractMovementEvent extends AbstractEvent
Constructor and Description |
---|
AbstractMovementEvent() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractMovementEvent |
clone()
This method should return an exact copy of the Moviment Event.
|
double |
getElapsedTime() |
Position |
getNextPosition() |
abstract Position |
getNextPosition(Node n)
This method should return a new Position to the Node n.
|
double |
getStartTime() |
double |
getStep() |
double |
getTime() |
void |
handle()
This method is an implementation of AbstractEvent#handle().
|
void |
setElapsedTime(double elapsedTime) |
void |
setNextPosition(Position nextPosition) |
void |
setStartTime(double startTime) |
void |
setStep(double step) |
void |
setTime(double time) |
void |
start(Node n,
double startime,
double time,
double step)
This method starts the MovimentEvent event.
|
compareTo, getFireTime, getID, getNode, setFireTime, setNode
public abstract AbstractMovementEvent clone()
clone
in class java.lang.Object
public abstract Position getNextPosition(Node n)
n
- - the node whose position might changepublic final void start(Node n, double startime, double time, double step)
n
- - the node whose position might changestartime
- - the start time of the moviment eventtime
- - the time that the will laststep
- - the step for position updatespublic double getElapsedTime()
public void setElapsedTime(double elapsedTime)
public Position getNextPosition()
public void setNextPosition(Position nextPosition)
public double getStep()
public void setStep(double step)
public double getTime()
public void setTime(double time)
public double getStartTime()
public void setStartTime(double startTime)
public void handle()
handle
in class AbstractEvent