Services

class SKAEntityTypeService(store_or_file_path)[source]

Service that manages the valid SKA Entity Type representations. On instantiation, first loads DefaultEntityTypes into memory and synchronised to a backing cache/store, but allows additions and modifications through the save_type method.

class DefaultEntityTypes(value)[source]

Default entity types

exception InvalidEntityTypeError[source]

Invalid entity type error exception

__init__(store_or_file_path)[source]
save_type(short_name, full_name)[source]

Save the entity type

class SKALocalSeqService(store_or_file_path)[source]

The service object that determines the next generated localSeq, based on a stored cursor.

exception InvalidCursorFileError[source]

Invalid cursor file error exception

__init__(store_or_file_path)[source]
next_sequence()[source]

generate next id in the sequence

class SKAScanIDService(store_or_file_path)[source]

The service responsible for calculating the next Scan ID and enforces constraints on the format and upper/lower bounds.

__init__(store_or_file_path)[source]
next_sequence()[source]

generate next id in the sequence