ciagent
Class CIAgentEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ciagent.CIAgentEvent
- public class CIAgentEvent
- extends java.util.EventObject
The CIAgentEvent
class defines the common event that is sent by
an intelligent agent.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
CIAgentEvent(java.lang.Object source)
Creates an extremely simple CIAgentEvent object. |
CIAgentEvent(java.lang.Object source,
java.lang.Object argObject)
Creates a more complex CIAgentEvent object that includes an
object related to the event. |
CIAgentEvent(java.lang.Object source,
java.lang.String action,
java.lang.Object argObject)
Creates a more complex CIAgentEvent object that includes an
object related to the event and an action. |
Method Summary |
java.lang.String |
getAction()
Retrieves the action related to this event. |
java.lang.Object |
getArgObject()
Retrieves the object related to this event. |
java.lang.String |
toString()
Converts the event to a string formatted for display or printing. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CIAgentEvent
public CIAgentEvent(java.lang.Object source)
- Creates an extremely simple
CIAgentEvent
object.
- Parameters:
source
- the Object that is a source of this event
CIAgentEvent
public CIAgentEvent(java.lang.Object source,
java.lang.Object argObject)
- Creates a more complex
CIAgentEvent
object that includes an
object related to the event.
- Parameters:
source
- the Object that is a source of this eventargObject
- the Object that is used to supply additional data about
this event
CIAgentEvent
public CIAgentEvent(java.lang.Object source,
java.lang.String action,
java.lang.Object argObject)
- Creates a more complex
CIAgentEvent
object that includes an
object related to the event and an action.
- Parameters:
source
- the Object that is a source of this eventaction
- the String that represents the action for this eventargObject
- the Object that is used to supply additional data about
this event
getArgObject
public java.lang.Object getArgObject()
- Retrieves the object related to this event.
- Returns:
- the argument Object (if any)
getAction
public java.lang.String getAction()
- Retrieves the action related to this event.
- Returns:
- the action (if any)
toString
public java.lang.String toString()
- Converts the event to a string formatted for display or printing.
- Returns:
- the formatted
String
object - Overrides:
- toString in class java.util.EventObject