public class

FSMConversation

extends Object
implements Conversation
java.lang.Object
   ↳ uk.ac.imperial.presage2.util.protocols.FSMConversation

Summary

Fields
public Object entity
public final List<NetworkAddress> recipients
Public Methods
boolean canHandle(Input in)
Check if this Handler can handle the given Input
Object getEntity()
UUID getID()
int getLastTransition()
Set<NetworkAddress> getMembers()
NetworkAdaptor getNetwork()
String getProtocol()
Role getRole()
Get your role in this conversation
String getState()
void handle(Input in)
Handle the given Input.
boolean isFinished()
void setConversationKey(UUID id)
void setEntity(Object entity)
[Expand]
Inherited Methods
From class java.lang.Object
From interface uk.ac.imperial.presage2.core.messaging.InputHandler
From interface uk.ac.imperial.presage2.util.protocols.Conversation

Fields

public Object entity

public final List<NetworkAddress> recipients

Public Methods

public boolean canHandle (Input in)

Check if this Handler can handle the given Input

Parameters
in Input to handle
Returns
  • true if it can, false otherwise.

public Object getEntity ()

public UUID getID ()

public int getLastTransition ()

public Set<NetworkAddress> getMembers ()

public NetworkAdaptor getNetwork ()

public String getProtocol ()

public Role getRole ()

Get your role in this conversation

public String getState ()

public void handle (Input in)

Handle the given Input.

Parameters
in Input to handle.

public boolean isFinished ()

public void setConversationKey (UUID id)

public void setEntity (Object entity)