com.sdm.quasar.client.core.data.structure
Class ComputedNode
java.lang.Object
com.sdm.quasar.client.core.data.structure.Node
com.sdm.quasar.client.core.data.structure.ComputedNode
- All Implemented Interfaces:
- SystemInfoProvider
- public class ComputedNode
- extends Node
Defines a node whose value is defined by a
Computation.
- Version:
- 1.0
- Author:
- Thomas Wolf, sd&m AG, Bernd Olleck, sd&m AG
|
Constructor Summary |
ComputedNode(java.lang.String key,
java.lang.String[] sourceNodesKeys,
Computation computation)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComputedNode
public ComputedNode(java.lang.String key,
java.lang.String[] sourceNodesKeys,
Computation computation)
- Constructor.
- Parameters:
key - the key of the nodesourceNodesKeys - the keys of the nodes that the computation depends oncomputation - the computation (not null)
getComputation
public Computation getComputation()
- Returns:
- the computation used to compute the value
collectSystemInfo
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
- Description copied from interface:
SystemInfoProvider
- Builds the system information tree upon local information of the implementor.
The system information tree can be used within development by inspecting the
system; so implementors should append their internal state (depending on the
details settings within
SystemInfoOptions).
The information can be appended to the tree by adding new child
SystemInformationNodes to the root node given using the
SystemInfoNode.createChild(String) method and by setting information
attributes the these nodes or the given root node.
- Specified by:
collectSystemInfo in interface SystemInfoProvider- Overrides:
collectSystemInfo in class Node
- See Also:
Node.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)