Magentix2
2.1.1
|
Public Member Functions | |
FinalState (String n) | |
void | setMethod (FinalStateMethod method) |
FinalStateMethod | getMethod () |
This class represents a final state during an interaction protocol. When a conversation reaches this state it executes the state's method.
Definition at line 10 of file FinalState.java.
es.upv.dsic.gti_ia.cAgents.FinalState.FinalState | ( | String | n | ) |
Create a new final state
name | of the state |
Definition at line 16 of file FinalState.java.
Returns the method assigned to this state by the setMethod() function
Definition at line 35 of file FinalState.java.
{
return methodToRun;
}
void es.upv.dsic.gti_ia.cAgents.FinalState.setMethod | ( | FinalStateMethod | method | ) |
Set the method that will be executed when a conversation reaches this state
The | method of this state |
Definition at line 27 of file FinalState.java.
{ methodToRun = method; }