Interface ExecutableInstancePropertyTracker
-
public interface ExecutableInstancePropertyTrackerInterface for tracking property changes onExecutableInstanceobjects.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 usinggetChangedProperties(),getChangedNodes()andgetChangedNodeProperties(int).After storing the the
ExecutableInstance, the changed properties need to be cleared by callingclearChangedProperties()- Author:
- KevinGoeser
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExecutableInstancePropertyTracker.ExecutableInstanceNodePropertyNode properties which are changeable in an executable instance.static classExecutableInstancePropertyTracker.ExecutableInstancePropertyProperties which are changeable in an executable instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearChangedProperties()Clears (resets) all properties to be unchanged.Set<ExecutableInstancePropertyTracker.ExecutableInstanceNodeProperty>getChangedNodeProperties(int nodeID)Returns the node properties in theExecutableInstanceof the given node which have been changed.Set<Integer>getChangedNodes()Returns the set of nodes which have changed properties.Set<ExecutableInstancePropertyTracker.ExecutableInstanceProperty>getChangedProperties()Returns the properties of theExecutableInstancewhich have been changed.
-
-
-
Method Detail
-
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.
-
-