Quartz::Stateful
Constants
STATE_CHECKS = {state_complete: false}
Instance methods
initial_state
Sourceinitial_state=(state : Quartz::State)
Sourcestate
Sourcestate=(state : Quartz::State)
SourceMacros
def_properties
Sourcedef_serialization
Sourcereset_state_checks
Sourcestate
The state macro defines a State subclass for the current Model
and expects a block to be passed.
The given block is inserted inside the definition of the State subclass.
See also State#var.
See also State#parameter.
Example
class MyModel < AtomicModel
state do
parameter a = 0.234
parameter b = 3.2
var x = 0.0
var y : Float64 { b }
end
end