public interface Mover extends Moveable, SimEntity, PropertyChangeSource
Sensor,
MoverManagerDEFAULT_ENTITY_NAME, DEFAULT_EVENT_NAME, DEFAULT_PRIORITY, EVENT_METHOD_PREFIX, NL| Modifier and Type | Method and Description |
|---|---|
void |
accelerate(java.awt.geom.Point2D acceleration)
Accelerate with the given acceleration vector.
|
void |
accelerate(java.awt.geom.Point2D acceleration,
double speed)
Accelerate in the direction of the given acceleration vector
to the given speed.
|
void |
doEndMove(Moveable mover)
Event that signals that this Mover has reached its desired location.
|
void |
doStartMove(Moveable mover)
Event that signals the start of a move to a previously set destination.
|
double |
getMaxSpeed() |
MovementState |
getMovementState() |
boolean |
isMoving() |
void |
magicMove(java.awt.geom.Point2D location)
Instantly move to the given location.
|
void |
move(java.awt.geom.Point2D velocity)
Move with the given velocity.
|
void |
moveTo(java.awt.geom.Point2D destination)
Causes this Mover to move to the given destination at
its maximum speed.
|
void |
moveTo(java.awt.geom.Point2D destination,
double cruisingSpeed)
Causes this Mover to move to the given destination at the
given speed.
|
java.lang.String |
paramString() |
void |
pause()
Pause at the current location.
|
void |
setLocation(java.awt.geom.Point2D location)
Added to support zero argument constructors and the ObjectMaker system.
|
void |
setMaxSpeed(double maxSpeed)
Added to support zero argument constructors and the ObjectMaker system.
|
void |
stop()
Stops at the current location.
|
getAcceleration, getLocation, getVelocitygetEventListID, setEventListIDaddSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListenerprocessSimEventisPersistant, isReRunnable, reset, setPersistantgetEventList, getPriority, getSerial, handleSimEvent, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, setPriority, waitDelay, waitDelayaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getAddedProperties, getProperty, getProperty, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPropertyvoid doStartMove(Moveable mover)
mover - Should be reference to this Mover.void doEndMove(Moveable mover)
mover - Should be reference to this Movervoid moveTo(java.awt.geom.Point2D destination)
destination - given destinationvoid moveTo(java.awt.geom.Point2D destination,
double cruisingSpeed)
destination - given destinationcruisingSpeed - given speedvoid move(java.awt.geom.Point2D velocity)
velocity - given velocityvoid magicMove(java.awt.geom.Point2D location)
throws MagicMoveException
location - given locationMagicMoveException - If this Mover is not allowed to magic move.void accelerate(java.awt.geom.Point2D acceleration)
acceleration - given acceleration vectorvoid accelerate(java.awt.geom.Point2D acceleration,
double speed)
acceleration - given accelerationspeed - given speedvoid stop()
void pause()
java.lang.String paramString()
boolean isMoving()
MovementState getMovementState()
double getMaxSpeed()
void setMaxSpeed(double maxSpeed)
throws MagicMoveException
maxSpeed - speed that this Mover should never exceed.MagicMoveException - if this Mover doesn't support "magic movesvoid setLocation(java.awt.geom.Point2D location)
throws MagicMoveException
location - Given locationMagicMoveException - if Mover doesn't support magic moves