public abstract class

MessageAction

extends Object
implements Action
java.lang.Object
   ↳ uk.ac.imperial.presage2.util.protocols.MessageAction
Known Direct Subclasses

Class Overview

Wraps an FSM Action to correctly cast event and entity to a Message and FSMConversation respectively, and provide the #processMessage(Message, FSMConversation) method to perform the required actions with these objects.

Summary

[Expand]
Inherited Constants
From interface uk.ac.imperial.presage2.util.fsm.Action
Public Constructors
MessageAction()
Public Methods
void execute(Object event, Object entity, Transition transition)
Executes this action for the Transition transition caused by event.
abstract void processMessage(Message message, FSMConversation conv, Transition transition)
Execute actions associated with the state change
[Expand]
Inherited Methods
From class java.lang.Object
From interface uk.ac.imperial.presage2.util.fsm.Action

Public Constructors

public MessageAction ()

Public Methods

public void execute (Object event, Object entity, Transition transition)

Executes this action for the Transition transition caused by event.

Parameters
event the event which caused this transition.
entity Entity object for this FSM.
transition transition being taken.

public abstract void processMessage (Message message, FSMConversation conv, Transition transition)

Execute actions associated with the state change