|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object is.lill.acre.protocol.Transition
public class Transition
Field Summary | |
---|---|
static java.lang.String |
CONTENT
|
static java.lang.String |
FROM_STATE
|
static java.lang.String |
PERFORMATIVE
|
static java.lang.String |
RECEIVER
|
static java.lang.String |
SENDER
|
static java.lang.String |
TO_STATE
|
Constructor Summary | |
---|---|
Transition(State startState,
State endState)
Constructor |
Method Summary | |
---|---|
ActiveTransition |
activate(Conversation c,
Bindings b)
Create a new Transition with the supplied bindings applied. |
Term |
getContent()
Get the message content required to trigger this transition (including variables). |
State |
getEndState()
Get the state that results from invoking this transition. |
java.lang.String |
getPerformative()
Get the performative required in a message matching this transition. |
Term |
getReceiver()
|
Term |
getSender()
Find details of the agent required to send the message matching this Transition. |
State |
getStartState()
Get the state that enables this transition to be invoked. |
boolean |
isTriggeredBy(IACREMessage message)
|
void |
setContent(Term content)
Specify the message content that would trigger this transition |
void |
setPerformative(java.lang.String performative)
Set the performative required in a message matching this transition. |
void |
setReceiver(Term receiver)
|
void |
setSender(Term sender)
Set the name of the agent required to send the message matching this transition. |
java.lang.String |
toString()
Create a String representation of this Transition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FROM_STATE
public static final java.lang.String TO_STATE
public static final java.lang.String PERFORMATIVE
public static final java.lang.String SENDER
public static final java.lang.String RECEIVER
public static final java.lang.String CONTENT
Constructor Detail |
---|
public Transition(State startState, State endState)
startState
- State from which this transition can be invokedendState
- Resultant state from invoking this transition.Method Detail |
---|
public State getStartState()
State
object.public State getEndState()
State
object.public java.lang.String getPerformative()
public void setPerformative(java.lang.String performative)
performative
- The performative as a String.public java.lang.String toString()
toString
in class java.lang.Object
public void setSender(Term sender)
sender
- The agent name that must match the sender in the message. May be
parseable as a variable.public Term getSender()
public void setReceiver(Term receiver)
public Term getReceiver()
public void setContent(Term content)
by
- Message content (including variables)public Term getContent()
public ActiveTransition activate(Conversation c, Bindings b)
bindings
- Bindings to apply to this transition.
ActiveTransition
based on this Transition with the given bindings applied.public boolean isTriggeredBy(IACREMessage message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |