org.mates.sim.event.agent
Class AgentMigrationEvent
java.lang.Object
org.mates.sim.event.Event
org.mates.sim.event.agent.AgentEvent
org.mates.sim.event.agent.AgentMigrationEvent
- public class AgentMigrationEvent
- extends AgentEvent
An event that is raised whenever an agent migrates from one host to
another.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AgentMigrationEvent
public AgentMigrationEvent(Agent agent,
Host from,
Host to)
getSourceHost
public Host getSourceHost()
- Returns the host from which the agent migrated.
getDestinationHost
public Host getDestinationHost()
- Returns the host to which the agent migrated.
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