verse.analysis.AnalysisTreeNode
- class verse.analysis.AnalysisTreeNode(trace: Dict[str, ndarray[Any, dtype[float64]]], init: Dict[str, Sequence[float]], mode: Dict[str, Sequence[str]], static: Dict[str, Sequence[str]], uncertain_param: Dict[str, Sequence[str]], agent: Dict[str, BaseAgent], height: int, assert_hits: Dict[str, Sequence[str]], child: List[AnalysisTreeNode], start_time: float, ndigits: int, type: AnalysisTreeNodeType, id: int)
 A AnalysisTreeNode stores the continous execution of the system without transition happening
Methods
get_mode(agent_id, mode)Filter out the agent mode(s) for a given agent
get_track(agent_id, mode)Filter out the track mode(s) for a given agent
new_child(init, mode, trace, start_time, id)Construct a child node, copying unchanged items from the parent node (self).
root_from_inits(init, mode, static, ...)Construct the root node from initial conditions and other settings.
- __init__(trace: Dict[str, ndarray[Any, dtype[float64]]], init: Dict[str, Sequence[float]], mode: Dict[str, Sequence[str]], static: Dict[str, Sequence[str]], uncertain_param: Dict[str, Sequence[str]], agent: Dict[str, BaseAgent], height: int, assert_hits: Dict[str, Sequence[str]], child: List[AnalysisTreeNode], start_time: float, ndigits: int, type: AnalysisTreeNodeType, id: int) None
 
Methods
__delattr__(name, /)Implement delattr(self, name).
__dir__(/)Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(name, /)Return getattr(self, name).
__getstate__(/)Helper for pickle.
__gt__(value, /)Return self>value.
__hash__(/)Return hash(self).
__init__(trace, init, mode, static, ...)__init_subclass__This method is called when a class is subclassed.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(*args, **kwargs)__reduce__(/)Helper for pickle.
__reduce_ex__(protocol, /)Helper for pickle.
__repr__(/)Return repr(self).
__setattr__(name, value, /)Implement setattr(self, name, value).
__sizeof__(/)Size of object in memory, in bytes.
__str__(/)Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
_from_dict(data)_to_dict()get_mode(agent_id, mode)Filter out the agent mode(s) for a given agent
get_track(agent_id, mode)Filter out the track mode(s) for a given agent
new_child(init, mode, trace, start_time, id)Construct a child node, copying unchanged items from the parent node (self).
root_from_inits(init, mode, static, ...)Construct the root node from initial conditions and other settings.
Attributes
__annotations____dict____doc____module____weakref__list of weak references to the object
traceThe trace for each agent.
initInitial conditions per agent for this node.
modeDiscrete mode per agent for this node.
agentDiscrete mode per agent for this node.
heightThe height/depth of the current node in the AnalysisTree
assert_hitsAssert hits per agent for this node.
childA list of children nodes for the current node.
start_timeThe earliest simulation time of this node.
typeType of the node.
ndigitsNumber of digits to round start_time to.
staticStatic data per agent for this node.
uncertain_paramParameters for uncertainty per agent for this node.
idInteger ID for the current node.