Interface ExecutableInstancePropertyTracker
public interface ExecutableInstancePropertyTracker
Interface for tracking property changes on
ExecutableInstance
objects.
Note: this is for internal use only!
After creation of an ExecutableInstance, there are no properties
marked as changed. Any changes after the creation will be tracked and can
be accessed using getChangedProperties(), getChangedNodes()
and getChangedNodeProperties(int).
After storing the the ExecutableInstance, the changed properties
need to be cleared by calling clearChangedProperties()
- Author:
- KevinGoeser
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumNode properties which are changeable in an executable instance.static enumProperties which are changeable in an executable instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears (resets) all properties to be unchanged.getChangedNodeProperties(int nodeID) Returns the node properties in theExecutableInstanceof the given node which have been changed.Returns the set of nodes which have changed properties.Returns the properties of theExecutableInstancewhich have been changed.
-
Method Details
-
getChangedProperties
Set<ExecutableInstancePropertyTracker.ExecutableInstanceProperty> getChangedProperties()Returns the properties of theExecutableInstancewhich have been changed.- Returns:
- The properties which have been changed.
-
getChangedNodeProperties
Set<ExecutableInstancePropertyTracker.ExecutableInstanceNodeProperty> getChangedNodeProperties(int nodeID) Returns the node properties in theExecutableInstanceof the given node which have been changed.- Parameters:
nodeID- The ID of the node.- Returns:
- The node properties which have been changed, or null if unchanged.
-
clearChangedProperties
void clearChangedProperties()Clears (resets) all properties to be unchanged. -
getChangedNodes
Returns the set of nodes which have changed properties. The set is empty in case no property has been changed.- Returns:
- The set of nodes which have changed properties.
-