| Constructor and Description |
|---|
DefaultMonitor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkScope(SessionType type,
SessionScope scope,
SessionScope subScope,
int scopeIndex)
This method checks a sub-scope to see whether it has completed, and if so,
remove it from the parent scope and initiate any optional completion node.
|
void |
initializeInstance(SessionType type,
SessionInstance instance)
This method initializes a session instance based on the supplied session type.
|
boolean |
received(SessionType type,
SessionInstance instance,
Message message,
String fromRole)
This method checks whether the received message is valid.
|
protected boolean |
received(SessionType type,
SessionScope scope,
Message message,
String fromRole)
This method checks whether the received message is applicable to the supplied
session scope or any of its child scopes.
|
boolean |
sent(SessionType type,
SessionInstance instance,
Message message,
String toRole)
This method checks whether the sent message is valid.
|
protected boolean |
sent(SessionType type,
SessionScope scope,
Message message,
String toRole)
This method checks whether the sent message is applicable to the supplied
session scope or any of its child scopes.
|
public void initializeInstance(SessionType type, SessionInstance instance)
initializeInstance in interface Monitortype - The session typeinstance - The session instancepublic boolean sent(SessionType type, SessionInstance instance, Message message, String toRole)
protected boolean sent(SessionType type, SessionScope scope, Message message, String toRole)
type - The session typescope - The session scopemessage - The messagetoRole - The optional 'to' rolepublic boolean received(SessionType type, SessionInstance instance, Message message, String fromRole)
protected boolean received(SessionType type, SessionScope scope, Message message, String fromRole)
type - The session typescope - The session scopemessage - The messagefromRole - The optional 'from' roleprotected void checkScope(SessionType type, SessionScope scope, SessionScope subScope, int scopeIndex)
type - The session typescope - The parent scopesubScope - The sub scope to checkscopeIndex - The sub-scope's index within the parent scopeCopyright © 2014. All Rights Reserved.