Batch
- class c104.Batch
This class represents a batch of outgoing monitoring messages of the same station and type
- __init__(self, cause: c104.Cot, points: list[c104.Point] | None = None) None
create a new batch of monitoring messages of the same station and the same type
- Parameters:
cause (c104.Cot) – what caused the transmission of the monitoring data
points (list[c104.Point], optional) – initial list of points
- Raises:
ValueError – if one point in the list is not compatible with the others
Example
>>> batch = c104.Batch(cause=c104.Cot.SPONTANEOUS, points=[point1, point2, point3])
- add_point(self: c104.Batch, point: c104.Point) None
add a new point to this Batch
- Parameters:
point (c104.Point) – to be added point
- Return type:
None
- Raises:
ValueError – if point is not compatible with the batch or if it is already in the batch
Example
>>> my_batch.add_point(my_point)
- property points
get a list of contained points (read-only)
- Type: