public abstract class

SpawnAction

extends Object
implements Action
java.lang.Object
   ↳ uk.ac.imperial.presage2.util.protocols.SpawnAction

Class Overview

Wraps an FSM Action to cast the event and entity to a ConversationSpawnEvent and FSMConversation respectively and provide the processSpawn(ConversationSpawnEvent, FSMConversation, Transition) method to perform actions required when the conversation is spawned.

Summary

[Expand]
Inherited Constants
From interface uk.ac.imperial.presage2.util.fsm.Action
Public Constructors
SpawnAction()
Public Methods
void execute(Object event, Object entity, Transition transition)
Executes this action for the Transition transition caused by event.
abstract void processSpawn(ConversationSpawnEvent event, FSMConversation conv, Transition transition)
Executes actions when a conversation is spawned.
[Expand]
Inherited Methods
From class java.lang.Object
From interface uk.ac.imperial.presage2.util.fsm.Action

Public Constructors

public SpawnAction ()

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 processSpawn (ConversationSpawnEvent event, FSMConversation conv, Transition transition)

Executes actions when a conversation is spawned. Will automatically add recipients from the ConversationSpawnEvent to the converstaion recipients.