|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.realtime.RealtimeObject
com.dautelle.math.functions.Function
com.dautelle.math.functions.DiscreteFunction
This class represents a function being actually defined from a mapping between two sets.
Nested Class Summary |
Nested classes inherited from class com.dautelle.math.functions.Function |
Function.Variable |
Nested classes inherited from class com.dautelle.realtime.RealtimeObject |
RealtimeObject.Factory |
Method Summary | |
Operable |
evaluate()
Evaluates this function by replacing its variables by their current (context-local) values. |
java.lang.Object |
export()
Exports this object out of the current pool context. |
java.util.Map |
getMapping()
Returns the mapping of this discrete function. |
java.util.Set |
getVariables()
Returns a set containing this function variables . |
java.lang.Object |
toHeap()
Moves this object to the heap. |
static DiscreteFunction |
valueOf(java.util.Map mapping,
Function.Variable variable)
Returns the DiscreteFunction defined from the specified
mapping between two sets. |
Methods inherited from class com.dautelle.math.functions.Function |
appendTo, compose, differentiate, integrate, opposite, plus, pow, reciprocal, times, toString |
Methods inherited from class com.dautelle.realtime.RealtimeObject |
clone, isLocalObject, isPoolObject, recycle |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static DiscreteFunction valueOf(java.util.Map mapping, Function.Variable variable)
DiscreteFunction
defined from the specified
mapping between two sets.
mapping
- the index-value mapping of this function.variable
- this function variable.
public java.util.Map getMapping()
valueOf(java.util.Map, com.dautelle.math.functions.Function.Variable)
public Operable evaluate()
Function
variables
by their current (context-local) values.
evaluate
in class Function
public java.util.Set getVariables()
Function
variables
.
getVariables
in class Function
public java.lang.Object export()
Realtime
Realtime
members are exported as well (recursion).
This method affects only objects belonging to the current pool context.
To avoid pool depletion, a "free" object from the outer pool
is moved to replace the object being exported.
export
in interface Realtime
export
in class RealtimeObject
public java.lang.Object toHeap()
Realtime
Realtime
members are moved to the heap as well (recursion).
This method affects only objects belonging to a pool context
(current or not).
toHeap
in interface Realtime
toHeap
in class RealtimeObject
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |