com.sdm.quasar.client.core.data.structure
Interface ComputationValueAccess


public interface ComputationValueAccess

This is a callback interface for the implementations of Computation.

Offers restricted access to internal node organization of the DataManager. for a Computation.

Version:
1.0
Author:
Thomas Wolf, sd&m AG, Bernd Olleck, sd&m AG

Method Summary
 java.util.Set getIndexSet(int indexOfSource, Context context)
          Returns a set of all index values of the source node with the given index by applying the given context.
 int getSourceCount()
           
 java.lang.Object getSourceValue(int indexOfSource, Context context)
          Returns the value of the source node with the given index.
 void setSourceValue(int indexOfSource, Context context, java.lang.Object newValue)
          Sets the (indexed) value of the source node with the given index by applying the given context
 

Method Detail

getSourceValue

public java.lang.Object getSourceValue(int indexOfSource,
                                       Context context)
Returns the value of the source node with the given index.

Parameters:
indexOfSource - the index of the source node in the order defined by the Node.getSourceNodeKeys()
context - the context to access the source value
Returns:
the value of the source node.

getIndexSet

public java.util.Set getIndexSet(int indexOfSource,
                                 Context context)
Returns a set of all index values of the source node with the given index by applying the given context. The method returns null for not indexed nodes.

Parameters:
indexOfSource - the index of the source node in the order defined by the Node.getSourceNodeKeys()
context - the context to access the source value
Returns:
a set of all index values of the source node or null

setSourceValue

public void setSourceValue(int indexOfSource,
                           Context context,
                           java.lang.Object newValue)
Sets the (indexed) value of the source node with the given index by applying the given context

Parameters:
indexOfSource - the index of the source node in the order defined by the Node.getSourceNodeKeys()
context - the context to access the source value
newValue - the value to be set

getSourceCount

public int getSourceCount()
Returns:
the number of source nodes