def __init__(self, x = None, epsilon = None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out.math._cumulative import Cumulative_IObservableFloat as _math_Cumulative_IObservableFloat from marketsim import deref_opt from marketsim.gen._out._constant import constant_Float as _constant_Float Observablefloat.__init__(self) self.x = x if x is not None else deref_opt(_math_Cumulative_IObservableFloat()) self.epsilon = epsilon if epsilon is not None else deref_opt(_constant_Float(0.01)) MinEpsilon_Impl.__init__(self)
def __init__(self, x=None, epsilon=None): from marketsim.gen._out._observable._observablefloat import Observablefloat from marketsim.gen._out.math._cumulative import Cumulative_IObservableFloat as _math_Cumulative_IObservableFloat from marketsim import deref_opt from marketsim.gen._out._constant import constant_Float as _constant_Float Observablefloat.__init__(self) self.x = x if x is not None else deref_opt( _math_Cumulative_IObservableFloat()) self.epsilon = epsilon if epsilon is not None else deref_opt( _constant_Float(0.01)) MinEpsilon_Impl.__init__(self)
def __init__(self, source=None, epsilon=None): from marketsim import rtti from marketsim.gen._out._constant import constant_Float as _constant_Float from marketsim.gen._out._const import const_Float as _const_Float from marketsim import event from marketsim.gen._out._observable import Observablefloat Observablefloat.__init__(self) self.source = source if source is not None else _const_Float(1.0) event.subscribe(self.source, self.fire, self) self.epsilon = epsilon if epsilon is not None else _constant_Float( 0.01) rtti.check_fields(self) MinEpsilon_Impl.__init__(self)
def __init__(self, source = None, epsilon = None): from marketsim.gen._out._constant import constant from marketsim.gen._out._constant import constant from marketsim import event from marketsim import types from marketsim import event from marketsim import types self.source = source if source is not None else constant() self.epsilon = epsilon if epsilon is not None else constant(0.01) MinEpsilon_Impl.__init__(self) if isinstance(source, types.IEvent): event.subscribe(self.source, self.fire, self) if isinstance(epsilon, types.IEvent): event.subscribe(self.epsilon, self.fire, self)
def reset(self): MinEpsilon_Impl.reset(self)
def bind_impl(self, ctx): MinEpsilon_Impl.bind_impl(self, ctx)