Uses of Class
jasima.core.util.observer.ObservableValue
-
Packages that use ObservableValue Package Description jasima.core.experiment jasima.core.simulation jasima.core.simulation.generic jasima.core.util.observer -
-
Uses of ObservableValue in jasima.core.experiment
Methods in jasima.core.experiment that return ObservableValue Modifier and Type Method Description ObservableValue<Experiment.ExperimentState>Experiment. state() -
Uses of ObservableValue in jasima.core.simulation
Methods in jasima.core.simulation that return ObservableValue Modifier and Type Method Description ObservableValue<Simulation.SimExecState>Simulation. observableState()Returns the current simulation execution state.Methods in jasima.core.simulation with parameters of type ObservableValue Modifier and Type Method Description static booleanSimContext. waitCondition(ObservableValue<Boolean> triggerCondition)static <T1,T2>
booleanSimContext. waitCondition(BiFunction<T1,T2,Boolean> triggerCondition, ObservableValue<? extends T1> obs1, ObservableValue<? extends T2> obs2)static <T> booleanSimContext. waitCondition(Function<T,Boolean> triggerCondition, ObservableValue<? extends T> observable)booleanSimProcess. waitCondition(ObservableValue<Boolean> triggerCondition)Waits (possibly forever) until some condition, represented by an ObservableValue, evaluates to true.<T1,T2>
booleanSimProcess. waitCondition(BiFunction<T1,T2,Boolean> triggerCondition, ObservableValue<? extends T1> obs1, ObservableValue<? extends T2> obs2)Same asSimProcess.waitCondition(Function, ObservableValue), but condition can depend of two values instead of just one.<T> booleanSimProcess. waitCondition(Function<T,Boolean> triggerCondition, ObservableValue<? extends T> observable)Waits until some condition becomes true. -
Uses of ObservableValue in jasima.core.simulation.generic
Constructors in jasima.core.simulation.generic with parameters of type ObservableValue Constructor Description ConditionQueue(ObservableValue<Boolean> condition)Create a new condition queue based on the value of onObservableValue(this can also be aDerivedObservable).ConditionQueue(Supplier<Boolean> boolExpression, ObservableValue<?>... exprDependencies)Creates a new condition queue depending on a certain condition. -
Uses of ObservableValue in jasima.core.util.observer
Subclasses of ObservableValue in jasima.core.util.observer Modifier and Type Class Description classConstValue<T>Technically an observable, but can't be changed.classDerivedObservable<T>This class extendsObservableValuein order to create values that are derived from other observable values.Fields in jasima.core.util.observer declared as ObservableValue Modifier and Type Field Description static ObservableValue<Boolean>ObservableValues. FALSEstatic ObservableValue<Boolean>ObservableValues. TRUEMethods in jasima.core.util.observer that return ObservableValue Modifier and Type Method Description static <T> ObservableValue<T>ObservableValues. observable(String name, T initialValue)static <T> ObservableValue<T>ObservableValues. observable(T initialValue)Creates a new observable value with a certain initial value.ObservableValue<VALUE>ObservableValue. update(Function<VALUE,VALUE> updateFunc)Updates the current value of this observable by calling the function passed as a parameter.Methods in jasima.core.util.observer that return types with arguments of type ObservableValue Modifier and Type Method Description Set<ObservableValue<?>>DerivedObservable. dependencySet()Returns the set of all dependencies used directly in the expression.Set<ObservableValue<?>>ObservableValue. dependencySet()Returns the set of immediate dependencies, i.e., all values this observable value depends on.Methods in jasima.core.util.observer with parameters of type ObservableValue Modifier and Type Method Description static DerivedObservable<Boolean>ObservableValues. and(ObservableValue<Boolean> v1, ObservableValue<Boolean> v2)Creates a derived observable of typeBooleancontaining a logical 'and' between two other observable values.static <T> DerivedObservable<T>ObservableValues. derived(String name, Supplier<T> expression, ObservableValue<?>... dependencies)static <T> DerivedObservable<T>ObservableValues. derived(Supplier<T> expression, ObservableValue<?>... dependencies)Creates a new observable value with a value as calculated by some functional expression.static <T1,T2,R>
DerivedObservable<R>ObservableValues. fromBinaryOperation(BiFunction<T1,T2,R> operation, ObservableValue<? extends T1> v1, ObservableValue<? extends T2> v2)Creates a new DerivedObservable by applying a certain binary function to two other observable values.static <T,R>
DerivedObservable<R>ObservableValues. fromUnaryOperation(Function<T,R> operation, ObservableValue<? extends T> v)Creates a new DerivedObservable by applying a certain unary function to another observable value.static <T> DerivedObservable<Boolean>ObservableValues. isEqual(ObservableValue<? extends T> v1, ObservableValue<? extends T> v2)Returns a derived observable for comparing the values of two other observable values.static <T,T2 extends T>
DerivedObservable<Boolean>ObservableValues. isEqual(ObservableValue<? extends T> v1, T2 v2)Same asObservableValues.isEqual(ObservableValue, ObservableValue), but comparing an observable value directly to a constant value.static <T,T2 extends T>
DerivedObservable<Boolean>ObservableValues. isEqual(T2 v1, ObservableValue<? extends T> v2)Same asObservableValues.isEqual(ObservableValue, ObservableValue), but comparing an observable value directly to a constant value.static DerivedObservable<Boolean>ObservableValues. not(ObservableValue<Boolean> v)Creates a derived observable of typeBooleancontaining a logical 'not' of another observable value.voidObservableValue.ObservableListener. onEvent(ObservableValue<V> ov, ObservableValue.EventType et)static DerivedObservable<Boolean>ObservableValues. or(ObservableValue<Boolean> v1, ObservableValue<Boolean> v2)Creates a derived observable of typeBooleancontaining a logical 'or' between two other observable values.static ObservableValue.ObservableListener<Boolean>ObservableValues. whenTrueExecuteOnce(ObservableValue<Boolean> ov, Runnable action)Runs the given action when the value of the given observable becomes true.Constructors in jasima.core.util.observer with parameters of type ObservableValue Constructor Description DerivedObservable(Supplier<T> expression, ObservableValue<?>... dependencies)
-