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 a
ParameterDataContext.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(ProcessNodeContext pnc1, ProcessNodeContext pnc2) Gets whether the designated process node contexts are equal (or bothnull) with respect to this interface.Gets the instance this context refers to if it can be provided by the using service or client.Gets the ID of the instance this context refers to.intGets the ID of the node this context refers to.Gets the optional iteration of the node this context refers to.Gets the optional parameter data context of the node this context refers to.static intGets 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, getSupportedPluginsMethods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
Method Details
-
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
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
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.
-