|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.data.structure.ContextNodeComputation
Provides a Computation
to be used in a ComputedNode
that uses an index value taken from a Node
to access an IndexedNode.
This implementation requires two source values:
IndexedNode. A value of null or an index
that is not available will result in a null return value
| Constructor Summary | |
ContextNodeComputation(IndexedNode indexedNode)
Constructor that takes the configuration from a given indexed node. |
|
| Method Summary | |
java.util.Set |
computeIndexSet(ComputationValueAccess sourceValuesAccess,
Context context)
Performs the computation of a Set of the index values. |
java.lang.Object |
computeValue(ComputationValueAccess sourceValuesAccess,
Context context)
Performs the computation with an context. Takes the current index value from the first source while using the given context and adds the index value to the context for accessing the second source (the IndexedNode). |
java.lang.Class[] |
getSourceTypes()
Returns an array with two values: the index type #indexType
the type of the indexed node #type
|
java.lang.Class |
getType()
|
void |
reverseValueComputation(java.lang.Object targetValue,
ComputationValueAccess sourceValuesAccess,
Context context)
Perform a reverse computation computes the correct source values with respect to the target value with a context. The resulting new source values must be set using the ComputationValueAccess.
Takes the current index value from the first source and uses it to build a Context
for accessing the second source (the IndexedNode). |
boolean |
supportsReverse()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextNodeComputation(IndexedNode indexedNode)
indexedNode - the indexed node that this ContextNodeComputation
accesses.| Method Detail |
public java.lang.Class getType()
getType in interface Computationpublic java.lang.Class[] getSourceTypes()
#indexType#type
getSourceTypes in interface ComputationComputation.getSourceTypes()
public java.lang.Object computeValue(ComputationValueAccess sourceValuesAccess,
Context context)
IndexedNode).
computeValue in interface ComputationsourceValuesAccess - the access source valuescontext - the context to be used
Computation.computeValue(com.sdm.quasar.client.core.data.structure.ComputationValueAccess, com.sdm.quasar.client.core.data.Context)public boolean supportsReverse()
supportsReverse in interface ComputationComputation.supportsReverse()
public void reverseValueComputation(java.lang.Object targetValue,
ComputationValueAccess sourceValuesAccess,
Context context)
ComputationValueAccess.
Takes the current index value from the first source and uses it to build a Context
for accessing the second source (the IndexedNode).
reverseValueComputation in interface ComputationtargetValue - the target valuesourceValuesAccess - the access current source valuescontext - the context to be usedComputation.reverseValueComputation(java.lang.Object, com.sdm.quasar.client.core.data.structure.ComputationValueAccess, com.sdm.quasar.client.core.data.Context)
public java.util.Set computeIndexSet(ComputationValueAccess sourceValuesAccess,
Context context)
Computation
computeIndexSet in interface ComputationsourceValuesAccess - the access source valuescontext - the context to be used
Computation.computeIndexSet(com.sdm.quasar.client.core.data.structure.ComputationValueAccess, com.sdm.quasar.client.core.data.Context)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||