is.lill.acre.protocol
Class ActiveTransition
java.lang.Object
is.lill.acre.protocol.ActiveTransition
public class ActiveTransition
- extends java.lang.Object
A class representing a transition between two State
s. Each Transition
describes a message that must be passed in order to trigger a state change.
Constructor Summary |
protected |
ActiveTransition()
Private constructor to allow Transitions to be created that are not
automatically linked with the start and end states This is designed to
create Transitions that already have bindings applied to them, but would
otherwise duplicate transitions between states. |
|
ActiveTransition(Conversation conversation,
Transition transition,
Bindings bindings)
Create a new Transition with the supplied bindings applied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActiveTransition
protected ActiveTransition()
- Private constructor to allow Transitions to be created that are not
automatically linked with the start and end states This is designed to
create Transitions that already have bindings applied to them, but would
otherwise duplicate transitions between states.
ActiveTransition
public ActiveTransition(Conversation conversation,
Transition transition,
Bindings bindings)
- Create a new Transition with the supplied bindings applied. Has the effect
of cloning this object and applying any relevant variable bindings.
- Parameters:
bindings
- Bindings to apply to this transition.
setSender
protected void setSender(Term sender)
setReceiver
protected void setReceiver(Term receiver)
setContent
protected void setContent(Term content)
setConversation
protected void setConversation(Conversation conversation)
setParentTransition
protected void setParentTransition(Transition transition)
isTriggeredBy
public boolean isTriggeredBy(IACREMessage message)
getBindings
public Bindings getBindings(IACREMessage message)
getEndState
public State getEndState()