You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Broadcast send -- check this out, should all others follow this convention or do we think it should be refined and renewed?
Basically, this creates a ModelRegister (which is a special type of ModelConstant that zeroes every time step)
Then it Creates a ink to that register to populate it every time step.
How is this different than a regular input? An input does NOT have it's value recorded as a new variable on the receiving object, rather, the receiving object uses that data that is housed remotely in another location
The more simplified method is to simply create a constant with state_path = /STATE/path_to_parent/new_local_variable_name
doesn't that become automatically discoverable if any input is looking for the variable, like if Qin = Qup + local_channel_Qout isn't that all we need?
To create:
call class function create_parent_var()
Make a constant: ModelConstant(keyname, self, float(keyval))
Does this need a variable register, and an input link to the parent, or is the variable implicit with path finding, so just a variable will suffice?
Or can this be handled more simply, with a single variable created on the parent,
and that is the repository for the data that the child stores in state
and automatically visible to the parent due to it's path being on the parent
and general object discovery techniques?
The text was updated successfully, but these errors were encountered:
rburghol
changed the title
Local Register Variables
Local Named State Variables
Jul 25, 2023
rburghol
changed the title
Local Named State Variables
Local Named State Variables (autosetvars)
Jul 26, 2023
local_channel_Qin
,local_channel_Qout
,local_channel_demand
, ...state_path = /STATE/path_to_parent/new_local_variable_name
Qin = Qup + local_channel_Qout
isn't that all we need?ModelConstant(keyname, self, float(keyval))
The text was updated successfully, but these errors were encountered: