com.sdm.quasar.client.core.data.structure
Class ComputedNode

java.lang.Object
  extended bycom.sdm.quasar.client.core.data.structure.Node
      extended bycom.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.
 
Method Summary
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor.
 Computation getComputation()
           
 
Methods inherited from class com.sdm.quasar.client.core.data.structure.Node
getKey, getSourceNodeKeys, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComputedNode

public ComputedNode(java.lang.String key,
                    java.lang.String[] sourceNodesKeys,
                    Computation computation)
Constructor.

Parameters:
key - the key of the node
sourceNodesKeys - the keys of the nodes that the computation depends on
computation - the computation (not null)
Method Detail

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)