Interface ProcessNodeContext
-
- All Superinterfaces:
PluginDataContainer
,Serializable
,UserAttributeContainer
public interface ProcessNodeContext extends UserAttributeContainer, PluginDataContainer, Serializable
This interface provides the context of a node (instance), i. e. the instance (or the corresponding ID), the node ID, optionally the node iteration and optionally aParameterDataContext
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static boolean
equals(ProcessNodeContext pnc1, ProcessNodeContext pnc2)
Gets whether the designated process node contexts are equal (or bothnull
) with respect to this interface.Instance
getInstance()
Gets the instance this context refers to if it can be provided by the using service or client.UUID
getInstanceId()
Gets the ID of the instance this context refers to.int
getNodeId()
Gets the ID of the node this context refers to.Integer
getNodeIteration()
Gets the optional iteration of the node this context refers to.ParameterDataContext
getParamDataContext()
Gets the optional parameter data context of the node this context refers to.static int
hashCode(ProcessNodeContext pnc)
Gets the hashcode for the designated process node context with respect to this interface.-
Methods inherited from interface de.aristaflow.adept2.model.common.PluginDataContainer
getPluginData, getPluginDatas, getSupportedPlugins
-
Methods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
-
-
-
Method Detail
-
getInstanceId
UUID getInstanceId()
Gets the ID of the instance this context refers to.- Returns:
- The ID of the instance this context refers to.
-
getInstance
Instance getInstance()
Gets the instance this context refers to if it can be provided by the using service or client. This may benull
.- Returns:
- The instance this context refers to if it can be provided by the using service or
client or
null
.
-
getNodeId
int getNodeId()
Gets the ID of the node this context refers to.- Returns:
- The ID of the node this context refers to.
-
getNodeIteration
Integer getNodeIteration()
Gets the optional iteration of the node this context refers to. If this isnull
, the current iteration of the referred node should be used.- Returns:
- The optional iteration of the node this context refers to or
null
.
-
getParamDataContext
ParameterDataContext getParamDataContext()
Gets the optional parameter data context of the node this context refers to. This may benull
.- Returns:
- The optional parameter data context of the node this context refers to or
null
.
-
equals
static boolean equals(ProcessNodeContext pnc1, ProcessNodeContext pnc2)
Gets whether the designated process node contexts are equal (or bothnull
) with respect to this interface.- Parameters:
pnc1
- The first process node context with which to determine equality.pnc2
- The second process node context with which to determine equality.- Returns:
- Whether the designated process node contexts are equal with respect to this interface.
-
hashCode
static int hashCode(ProcessNodeContext pnc)
Gets the hashcode for the designated process node context with respect to this interface. This corresponds toequals(ProcessNodeContext, ProcessNodeContext)
.- Parameters:
pnc
- The process node context for which to get the hashcode.- Returns:
- The hashcode of the designated process node context.
-
-