Jadex 0.96-beta1

jadex.runtime
Class AgentEvent

java.lang.Object
  extended by jadex.runtime.AgentEvent

public class AgentEvent
extends Object

The agent event is used for the agent call back interface. Whenever a method of the IAgentInterface is called it will contain an agent event with detailed information about the event that happened.


Constructor Summary
AgentEvent(IElement source)
          Create a new agent event.
AgentEvent(IElement source, Object value)
          Create a new agent event.
 
Method Summary
 IElement getSource()
          Get the source.
 Object getValue()
          Get the value.
 void setSource(IElement source)
          Set the source.
 void setValue(Object value)
          Set the value.
 String toString()
          Return the string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentEvent

public AgentEvent(IElement source)
Create a new agent event.

Parameters:
source - The event source.

AgentEvent

public AgentEvent(IElement source,
                  Object value)
Create a new agent event.

Parameters:
source - The event source.
value - The event value.
Method Detail

getSource

public IElement getSource()
Get the source.

Returns:
The source.

setSource

public void setSource(IElement source)
Set the source.

Parameters:
source - The source to set.

getValue

public Object getValue()
Get the value.

Returns:
The value.

setValue

public void setValue(Object value)
Set the value.

Parameters:
value - The value to set.

toString

public String toString()
Return the string representation.

Overrides:
toString in class Object
Returns:
The string representation.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.