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
trace
The trace for each agent.
init
Initial conditions per agent for this node.
mode
Discrete mode per agent for this node.
agent
Discrete mode per agent for this node.
height
The height/depth of the current node in the AnalysisTree
assert_hits
Assert hits per agent for this node.
child
A list of children nodes for the current node.
start_time
The earliest simulation time of this node.
type
Type of the node.
ndigits
Number of digits to round start_time to.
static
Static data per agent for this node.
uncertain_param
Parameters for uncertainty per agent for this node.
id
Integer ID for the current node.