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 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 be null.
      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 is null, 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 be null.
      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 both null) 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 to equals(ProcessNodeContext, ProcessNodeContext).
      Parameters:
      pnc - The process node context for which to get the hashcode.
      Returns:
      The hashcode of the designated process node context.