MATES 3.0-rc2

org.mates.sim.event.agent
Class AgentMigrationEvent

java.lang.Object
  extended byorg.mates.sim.event.Event
      extended byorg.mates.sim.event.agent.AgentEvent
          extended byorg.mates.sim.event.agent.AgentMigrationEvent

public class AgentMigrationEvent
extends AgentEvent

An event that is raised whenever an agent migrates from one host to another.


Field Summary
 
Fields inherited from class org.mates.sim.event.agent.AgentEvent
agent
 
Constructor Summary
AgentMigrationEvent(Agent agent, Host from, Host to)
           
 
Method Summary
 Host getDestinationHost()
          Returns the host to which the agent migrated.
 Host getSourceHost()
          Returns the host from which the agent migrated.
 java.lang.String toString()
          Returns a string representation of this event.
 
Methods inherited from class org.mates.sim.event.agent.AgentEvent
getAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentMigrationEvent

public AgentMigrationEvent(Agent agent,
                           Host from,
                           Host to)
Method Detail

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

MATES 3.0-rc2

Submit a bug or request a feature
http://mates.sourceforge.net/

Copyright 2004 Evan Sultanik