# represents a continuus set of time steps relative to the global simulation start t_start
classDynamic:
# returns the root dynamic of this dynamic
defget_root_dynamic(self):
defroot(self):
pass
# return true if other is an ancestor of this dynamic
...
...
@@ -55,22 +55,22 @@ class Dynamic:
# returns the indices between the given start and end positions
# p_start and p_end are relative to this dynamic
defget_indices_within_p(self,p_start,p_end):
defindices_within_p(self,p_start,p_end):
pass
# returns the indices between the given start and end indices
# i_start and i_end are relative to the root dynamic
defget_indices_within(self,i_start,i_end):
defindices_within(self,i_start,i_end):
pass
# returns the index of the given position
# position is relative to this dynamic
defget_index_of(self,position):
defindex_of(self,position):
pass
# returns the position of the given index
# index is relative to the root dynamic
defget_position_of(self,index):
defposition_of(self,index):
pass
# returns the length of the time step at the given position
...
...
@@ -89,28 +89,28 @@ class Dynamic:
# constructs a sub dynamic containing time steps starting at the time steps at the given positions with the last position representing the end of the last time step
# positions are relative to this dynamic
defget_sub_dynamic_p(self,positions):
defsub_dynamic_p(self,positions):
pass
# constructs a sub dynamic containing time steps starting at the time steps at the given indices with the last index representing the end of the last time step
# indices are relative to the root dynamic
defget_sub_dynamic(self,indices):
defsub_dynamic(self,indices):
pass
# construct a sub dynamic containing time steps between the given positions
# p_start and p_end are relative to the root dynamic
defget_partial_dynamic_p(self,p_start,p_end):
# p_start and p_end are relative to this dynamic
defpartial_dynamic_p(self,p_start,p_end):
pass
# construct a sub dynamic containing time steps between the given indices
# i_start and i_end are relative to the root dynamic