CA Context ( antares.context.CAContext )

For predefined attributes for CA context, see here.

Antares context module.

class antares.context.CAContext(container_id)

Bases: antares.context.Context

Represents a CA (Camera Alert) context object which is a sub-class of Context. It contains all the properties defined under CA context.

Param:container_id(int): ID of the object that contains the context, which will be a CameraAlert.

Attributes Summary

name Name of CA context.
camera_alert This is the CameraAlert which contains this CAContext.

Methods Summary

assembleVector(context, propname) The function assembles a vector of all the values of an property inside a context of the alert replicas of the camera alert.

Attributes Documentation

name = 'CA'

Name of CA context.

Type:string
camera_alert = None

This is the CameraAlert which contains this CAContext.

Type:CameraAlert

Methods Documentation

assembleVector(context, propname)

The function assembles a vector of all the values of an property inside a context of the alert replicas of the camera alert.

Parameters:
  • context (string) – the name of the context
  • propname (string) – the name of the property
Returns:

an array of values

Return type:

numpy array