org.mates.sim.event.host
Class HostMovedEvent
java.lang.Object
org.mates.sim.event.Event
org.mates.sim.event.host.HostEvent
org.mates.sim.event.host.HostMovedEvent
- public class HostMovedEvent
- extends HostEvent
Event raised whenever a host moved (i.e. the host's current
position is different than its position in the previous iteration).
- Author:
- Evan Sultanik
Fields inherited from class org.mates.sim.event.host.HostEvent |
host |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HostMovedEvent
public HostMovedEvent(Host host,
Position fromPosition,
Position toPosition)
- Creates a new HostMovedEvent.
getFromPosition
public Position getFromPosition()
- Returns the position from which this host moved.
getToPosition
public Position getToPosition()
- Returns the position to which this host moved.
toString
public java.lang.String toString()
- Description copied from class:
Event
- Returns a string representation of this event.
- Specified by:
toString
in class Event
Submit a bug or request a feature
http://mates.sourceforge.net/
Copyright 2004 Evan Sultanik