Interface ExecutableInstancePropertyTracker
-
public interface ExecutableInstancePropertyTracker
Interface for tracking property changes onExecutableInstance
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 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 class
ExecutableInstancePropertyTracker.ExecutableInstanceNodeProperty
Node properties which are changeable in an executable instance.static class
ExecutableInstancePropertyTracker.ExecutableInstanceProperty
Properties which are changeable in an executable instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearChangedProperties()
Clears (resets) all properties to be unchanged.Set<ExecutableInstancePropertyTracker.ExecutableInstanceNodeProperty>
getChangedNodeProperties(int nodeID)
Returns the node properties in theExecutableInstance
of 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 theExecutableInstance
which have been changed.
-
-
-
Method Detail
-
getChangedProperties
Set<ExecutableInstancePropertyTracker.ExecutableInstanceProperty> getChangedProperties()
Returns the properties of theExecutableInstance
which have been changed.- Returns:
- The properties which have been changed.
-
getChangedNodeProperties
Set<ExecutableInstancePropertyTracker.ExecutableInstanceNodeProperty> getChangedNodeProperties(int nodeID)
Returns the node properties in theExecutableInstance
of 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.
-
-