Package | Description |
---|---|
edu.usc.ict.iago.agent | |
edu.usc.ict.iago.utils |
Modifier and Type | Method and Description |
---|---|
protected Event |
AgentUtilsExtension.lastEvent(java.util.LinkedList<Event> history,
Event.EventClass type)
Returns the last event of type type, or null if nothing found.
|
protected Event |
AgentUtilsExtension.lastEventReceived(java.util.LinkedList<Event> history,
Event.EventClass type)
Returns the last event of type type that was received, or null if nothing found.
|
protected Event |
AgentUtilsExtension.secondLastEvent(java.util.LinkedList<Event> history,
Event.EventClass type)
Returns the second to last event of type type, or null if nothing found.
|
Modifier and Type | Method and Description |
---|---|
Event.EventClass |
Event.getType()
Provides the type of the event that calls the method.
|
static Event.EventClass |
Event.EventClass.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Event.EventClass[] |
Event.EventClass.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Event(int owner,
Event.EventClass eventClass)
Specialized constructor used to create a GAME_START or GAME_END event.
|
Event(int owner,
Event.EventClass eventClass,
Event.SubClass sc,
int value,
java.lang.String message,
int delay)
Constructor used to create a SEND_MESSAGE event with an integer value (for BATNA etc.)
|
Event(int owner,
Event.EventClass eventClass,
Event.SubClass sc,
java.lang.String message,
int delay)
Constructor used to create a SEND_MESSAGE event
|
Event(int owner,
Event.EventClass eventClass,
int delay)
Constructor used to create a FORMAL_ACCEPT, FORMAL_QUIT or OFFER_IN_PROGRESS event.
|
Event(int owner,
Event.EventClass eventClass,
int value,
java.lang.String message,
int delay)
Constructor used to create a SEND_MESSAGE event with an integer value (for BATNA etc.)
|
Event(int owner,
Event.EventClass eventClass,
Offer offer)
Deprecated.
|
Event(int owner,
Event.EventClass eventClass,
Offer offer,
int delay)
Constructor used to create a SEND_OFFER event.
|
Event(int owner,
Event.EventClass eventClass,
Offer offer,
java.lang.String message,
int delay)
Specialized constructor usable only by IAGO to add message descriptions of offers.
|
Event(int owner,
Event.EventClass eventClass,
java.lang.String time)
Specialized constructor used to create a TIME event.
|
Event(int owner,
Event.EventClass eventClass,
java.lang.String message,
int delay)
Constructor used to create a SEND_MESSAGE event
|
Event(int owner,
Event.EventClass eventClass,
java.lang.String emotion,
int duration,
int delay)
Constructor used to create a SEND_EXPRESSION event
|