is.lill.acre.protocol
Class ActiveTransition

java.lang.Object
  extended by is.lill.acre.protocol.ActiveTransition

public class ActiveTransition
extends java.lang.Object

A class representing a transition between two States. 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.
 
Method Summary
 Bindings getBindings(IACREMessage message)
           
 State getEndState()
           
 boolean isTriggeredBy(IACREMessage message)
           
protected  void setContent(Term content)
           
protected  void setConversation(Conversation conversation)
           
protected  void setParentTransition(Transition transition)
           
protected  void setReceiver(Term receiver)
           
protected  void setSender(Term sender)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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()