MATES 3.0-rc2

org.mates.sim.event.agent
Class AgentArrivalEvent

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

public class AgentArrivalEvent
extends AgentEvent

An event that is raised whenever an agent arrives at a host.


Field Summary
 
Fields inherited from class org.mates.sim.event.agent.AgentEvent
agent
 
Constructor Summary
AgentArrivalEvent(Agent agent, Host arrived_at, Host from)
           
 
Method Summary
 Host getDestinationHost()
          Returns the host to which the agent arrived.
 Host getSourceHost()
          Returns the host from which the agent was sent.
 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

AgentArrivalEvent

public AgentArrivalEvent(Agent agent,
                         Host arrived_at,
                         Host from)
Method Detail

getSourceHost

public Host getSourceHost()
Returns the host from which the agent was sent.


getDestinationHost

public Host getDestinationHost()
Returns the host to which the agent arrived.


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