public class Node extends Object implements RestrictedNode
Note that nested nodes may themselves have structure and that empty nodes are available, which can help group dependencies.
More exactly, we specify a tree and a traversal - the traversal is hardcoded below, and implicit in the instructions above.
Modifier and Type | Field and Description |
---|---|
static int |
EMPTY |
static int |
FAILURE |
protected Log |
logger |
static int |
SUCCESS |
Constructor and Description |
---|
Node() |
Node(Class clazz,
int action) |
Node(Class clazz,
int action,
String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Class clazz,
int action) |
RestrictedNode |
getAnyRemaining() |
Class |
getNotificationClass() |
boolean |
isExhausted() |
int |
match(ServerNotification notification) |
Node |
parallel(RestrictedNode node) |
Node |
parallelSynch(RestrictedNode node)
Avoid warnings when we need to add a synch event as parallel for other reasons
(typically because there's more than one model generating some event)
|
RestrictedNode |
serial(RestrictedNode node) |
String |
toString() |
public static final int SUCCESS
public static final int FAILURE
public static final int EMPTY
protected final transient Log logger
public Node(Class clazz, int action)
public Node()
public Node parallel(RestrictedNode node)
public Node parallelSynch(RestrictedNode node)
public RestrictedNode serial(RestrictedNode node)
serial
in interface RestrictedNode
public int match(ServerNotification notification)
match
in interface RestrictedNode
notification
- public boolean contains(Class clazz, int action)
contains
in interface RestrictedNode
public RestrictedNode getAnyRemaining()
getAnyRemaining
in interface RestrictedNode
public boolean isExhausted()
isExhausted
in interface RestrictedNode
public Class getNotificationClass()
getNotificationClass
in interface RestrictedNode
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.