Options
All
  • Public
  • Public/Protected
  • All
Menu

Module models

Index

Common Classes

Sequence Manager Service Classes

Sequencer Service Classes

Event Service Classes

Config Service Classes

Alarm Service Classes

Other Classes

Params Classes

Sequencer Service Interfaces

Location Service Interfaces

Other Interfaces

Params Interfaces

Common Type aliases

Agent Service Type aliases

Sequence Manager Service Type aliases

Sequencer Service Type aliases

Location Service Type aliases

Event Service Type aliases

Command Service Type aliases

Config Service Type aliases

Logger Service Type aliases

Alarm Service Type aliases

Other Type aliases

Params Type aliases

Response ADT Type aliases

Variables

Location Service Functions

Other Functions

Common Type aliases

ComponentType

ComponentType: "HCD" | "Assembly" | "Service" | "Container" | "Sequencer" | "SequenceComponent" | "Machine"

Represents a type of the Component.

ContainerLifecycleState

ContainerLifecycleState: "Idle" | "Running"

Lifecycle state of a container actor

SupervisorLifecycleState

SupervisorLifecycleState: "Idle" | "Running" | "RunningOffline" | "Restart" | "Shutdown" | "Lock"

Lifecycle state of a Supervisor actor

Agent Service Type aliases

AgentStatus

AgentStatus: { agentId: ComponentId; seqCompsStatus: SequenceComponentStatus[] }

Type declaration

AgentStatusResponse

KillResponse

KillResponse: Killed | Failed

Killed

Killed: { _type: "Killed" }

Type declaration

  • _type: "Killed"

SequenceComponentStatus

SequenceComponentStatus: { seqCompId: ComponentId; sequencerLocation: AkkaLocation[] }

Type declaration

SpawnResponse

SpawnResponse: Spawned | Failed

Spawned

Spawned: { _type: "Spawned" }

Type declaration

  • _type: "Spawned"

Sequence Manager Service Type aliases

ConfigureResponse

ObsModesDetailsResponse

ProvisionResponse

ResourcesStatusResponse

ResourcesStatusResponse: ResourcesStatusSuccess | Failed

RestartSequencerResponse

ShutdownSequenceComponentResponse

ShutdownSequenceComponentResponse: ShutdownSequencersResponse | FailedResponse

ShutdownSequencersResponse

ShutdownSequencersResponse: Unhandled | LocationServiceError | Success | FailedResponse

StartSequencerResponse

Sequencer Service Type aliases

DiagnosticModeResponse

DiagnosticModeResponse: Ok | DiagnosticHookFailed

GenericResponse

GoOfflineResponse

GoOnlineResponse

OkOrUnhandledResponse

OkOrUnhandledResponse: Ok | Unhandled

OperationsModeResponse

OperationsModeResponse: Ok | OperationsHookFailed

PauseResponse

RemoveBreakpointResponse

RemoveBreakpointResponse: OkOrUnhandledResponse | IdDoesNotExist

SequenceCommand

SequenceCommand: Setup | Observe | Wait

Marker type for sequence parameter sets which is applicable to Sequencer type of components

SequencerState

SequencerState: { _type: "Idle" | "Processing" | "Loaded" | "Offline" | "Running" }

Type declaration

  • _type: "Idle" | "Processing" | "Loaded" | "Offline" | "Running"

SequencerStateResponse

SequencerStateResponse: { _type: "SequencerStateResponse"; sequencerState: SequencerState; stepList: StepList }

Type declaration

StepStatus

Location Service Type aliases

AkkaConnection

AkkaConnection: { componentType: ComponentType; connectionType: "akka"; prefix: Prefix }

Type declaration

AkkaLocation

AkkaLocation: { _type: "AkkaLocation"; connection: Connection; metadata: Record<string, string>; uri: string }

Represents a live Akka connection of a component

Type declaration

  • _type: "AkkaLocation"
  • connection: Connection
  • metadata: Record<string, string>
  • uri: string

Connection

ConnectionType

ConnectionType: "akka" | "tcp" | "http"

HttpConnection

HttpConnection: { componentType: ComponentType; connectionType: "http"; prefix: Prefix }

Type declaration

HttpLocation

HttpLocation: { _type: "HttpLocation"; connection: Connection; metadata: Record<string, string>; uri: string }

Represents a live HTTP connection of a component

Type declaration

  • _type: "HttpLocation"
  • connection: Connection
  • metadata: Record<string, string>
  • uri: string

Location

Location represents a live Connection along with its URI

TcpConnection

TcpConnection: { componentType: ComponentType; connectionType: "tcp"; prefix: Prefix }

Type declaration

TcpLocation

TcpLocation: { _type: "TcpLocation"; connection: Connection; metadata: Record<string, string>; uri: string }

Represents a live Tcp connection of a component

Type declaration

  • _type: "TcpLocation"
  • connection: Connection
  • metadata: Record<string, string>
  • uri: string

TrackingEvent

TrackingEvent is used to represent location events while tracking the connection

Event Service Type aliases

Event

Command Service Type aliases

CommandResponse

CommandResponse: Error | Invalid | Locked | Started | Completed | Cancelled | Accepted

ControlCommand

ControlCommand: Setup | Observe

Marker type for control parameter sets which is applicable to Assembly and HCD type of components

OnewayResponse

OnewayResponse: Accepted | Invalid | Locked

SubmitResponse

SubmitResponse: Error | Invalid | Locked | Started | Completed | Cancelled

ValidateResponse

ValidateResponse: Accepted | Invalid | Locked

Config Service Type aliases

ConfigFileInfo

ConfigFileInfo: { author: string; comment: string; id: ConfigId; path: string }

Type declaration

  • author: string
  • comment: string
  • id: ConfigId
  • path: string

ConfigFileRevision

ConfigFileRevision: { author: string; comment: string; id: ConfigId; time: string }

Type declaration

  • author: string
  • comment: string
  • id: ConfigId
  • time: string

ConfigMetadata

ConfigMetadata: { annexMinFileSize: string; annexPath: string; maxConfigFileSize: string; repoPath: string }

Type declaration

  • annexMinFileSize: string
  • annexPath: string
  • maxConfigFileSize: string
  • repoPath: string

FileType

FileType: "Normal" | "Annex"

Logger Service Type aliases

Level

Level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"

A logging level.

LogMetadata

LogMetadata: { akkaLevel: Level; componentLevel: Level; defaultLevel: Level; slf4jLevel: Level }

Holds metadata information about logging configuration

Type declaration

Alarm Service Type aliases

AlarmSeverity

AlarmSeverity: "Okay" | "Warning" | "Major" | "Indeterminate" | "Critical"

Represents the alarm severity set by the component developer.

Other Type aliases

Accepted

Accepted: { _type: "Accepted"; runId: string }

Type declaration

  • _type: "Accepted"
  • runId: string

AgentStatusSuccess

AgentStatusSuccess: { _type: "Success"; agentStatus: AgentStatus[]; seqCompsWithoutAgent: SequenceComponentStatus[] }

Type declaration

AlreadyRunning

AlreadyRunning: { _type: "AlreadyRunning"; componentId: ComponentId }

Type declaration

AppConfig

AppConfig: { applicationName: string }

Type declaration

  • applicationName: string

AppConfigModule

AppConfigModule: { AppConfig: AppConfig }

Shape for Application config module

Type declaration

AuthData

AuthData: { tokenFactory?: TokenFactory; username?: string }

Type declaration

  • Optional tokenFactory?: TokenFactory

    a function that returns a valid auth token which has correct access roles and permissions

  • Optional username?: string

    username of the logged in user

BaseKeyType

BaseKeyType<K>: BaseKey<K> | ChoiceKeyFactory<K, any>

Type parameters

Cancelled

Cancelled: { _type: "Cancelled"; runId: string }

Type declaration

  • _type: "Cancelled"
  • runId: string

CannotOperateOnAnInFlightOrFinishedStep

CannotOperateOnAnInFlightOrFinishedStep: { _type: "CannotOperateOnAnInFlightOrFinishedStep" }

Type declaration

  • _type: "CannotOperateOnAnInFlightOrFinishedStep"

CommandIssue

CommandIssue: { _type: IssueTypes; reason: string }

Type declaration

Completed

Completed: { _type: "Completed"; result: Result; runId: string }

Type declaration

  • _type: "Completed"
  • result: Result
  • runId: string

Configurable

Configurable: { _type: "Configurable" }

Type declaration

  • _type: "Configurable"

ConfigurationMissing

ConfigurationMissing: { _type: "ConfigurationMissing"; obsMode: ObsMode }

Type declaration

  • _type: "ConfigurationMissing"
  • obsMode: ObsMode

ConfigureSuccess

ConfigureSuccess: { _type: "Success"; masterSequencerComponentId: ComponentId }

Type declaration

  • _type: "Success"
  • masterSequencerComponentId: ComponentId

Configured

Configured: { _type: "Configured" }

Type declaration

  • _type: "Configured"

ConflictingResourcesWithRunningObsMode

ConflictingResourcesWithRunningObsMode: { _type: "ConflictingResourcesWithRunningObsMode"; runningObsMode: ObsMode[] }

Type declaration

  • _type: "ConflictingResourcesWithRunningObsMode"
  • runningObsMode: ObsMode[]

CouldNotFindMachines

CouldNotFindMachines: { _type: "CouldNotFindMachines"; prefix: Prefix[] }

Type declaration

  • _type: "CouldNotFindMachines"
  • prefix: Prefix[]

DiagnosticHookFailed

DiagnosticHookFailed: { _type: "DiagnosticHookFailed" }

Type declaration

  • _type: "DiagnosticHookFailed"

Done

Done: "Done"

EqFrame

EqFrame: "ICRS" | "FK5"

Error

Error: { _type: "Error"; message: string; runId: string }

Type declaration

  • _type: "Error"
  • message: string
  • runId: string

Failed

Failed: { _type: "Failed"; msg: string }

Type declaration

  • _type: "Failed"
  • msg: string

FailedResponse

FailedResponse: { _type: "FailedResponse"; reason: string }

Type declaration

  • _type: "FailedResponse"
  • reason: string

FailedToStartSequencers

FailedToStartSequencers: { _type: "FailedToStartSequencers"; reasons: string[] }

Type declaration

  • _type: "FailedToStartSequencers"
  • reasons: string[]

GoOfflineHookFailed

GoOfflineHookFailed: { _type: "GoOfflineHookFailed" }

Type declaration

  • _type: "GoOfflineHookFailed"

GoOnlineHookFailed

GoOnlineHookFailed: { _type: "GoOnlineHookFailed" }

Type declaration

  • _type: "GoOnlineHookFailed"

IdDoesNotExist

IdDoesNotExist: { _type: "IdDoesNotExist"; id: string }

Type declaration

  • _type: "IdDoesNotExist"
  • id: string

Invalid

Invalid: { _type: "Invalid"; issue: CommandIssue; runId: string }

Type declaration

IssueTypes

IssueTypes: "AssemblyBusyIssue" | "HCDBusyIssue" | "IdNotAvailableIssue" | "MissingKeyIssue" | "OtherIssue" | "ParameterValueOutOfRangeIssue" | "RequiredAssemblyUnavailableIssue" | "RequiredHCDUnavailableIssue" | "RequiredSequencerUnavailableIssue" | "RequiredServiceUnavailableIssue" | "UnresolvedLocationsIssue" | "UnsupportedCommandInStateIssue" | "UnsupportedCommandIssue" | "WrongInternalStateIssue" | "WrongNumberOfParametersIssue" | "WrongParameterTypeIssue" | "WrongPrefixIssue" | "WrongUnitsIssue" | "WrongCommandTypeIssue"

LoadScriptError

LoadScriptError: { _type: "LoadScriptError"; reason: string }

Type declaration

  • _type: "LoadScriptError"
  • reason: string

LocationServiceError

LocationServiceError: { _type: "LocationServiceError"; reason: string }

Type declaration

  • _type: "LocationServiceError"
  • reason: string

Locked

Locked: { _type: "Locked"; runId: string }

Type declaration

  • _type: "Locked"
  • runId: string

NonConfigurable

NonConfigurable: { _type: "NonConfigurable"; missingSequenceComponents: Subsystem[] }

Type declaration

  • _type: "NonConfigurable"
  • missingSequenceComponents: Subsystem[]

ObsModeDetails

ObsModeDetails: { obsMode: ObsMode; resources: Subsystem[]; sequencers: Subsystem[]; status: ObsModeStatus }

Type declaration

ObsModeStatus

ObsModesDetailsResponseSuccess

ObsModesDetailsResponseSuccess: { _type: "Success"; obsModes: ObsModeDetails[] }

Type declaration

Ok

Ok: { _type: "Ok" }

Type declaration

  • _type: "Ok"

OperationsHookFailed

OperationsHookFailed: { _type: "OperationsHookFailed" }

Type declaration

  • _type: "OperationsHookFailed"

Option

Option<T>: T | undefined

Type parameters

  • T

ProperMotion

ProperMotion: { pmx: number; pmy: number }

Type declaration

  • pmx: number
  • pmy: number

ResourceStatus

ResourceStatus: { _type: "InUse" | "Available" }

Type declaration

  • _type: "InUse" | "Available"

ResourceStatusResponse

ResourceStatusResponse: { obsMode?: ObsMode; resource: Subsystem; status: ResourceStatus }

Type declaration

ResourcesStatusSuccess

ResourcesStatusSuccess: { _type: "Success"; resourcesStatus: ResourceStatusResponse[] }

Type declaration

RestartSequencerSuccess

RestartSequencerSuccess: { _type: "Success"; componentId: ComponentId }

Type declaration

SequenceComponentNotAvailable

SequenceComponentNotAvailable: { _type: "SequenceComponentNotAvailable"; msg: string; subsystems: Subsystem[] }

Type declaration

  • _type: "SequenceComponentNotAvailable"
  • msg: string
  • subsystems: Subsystem[]

SequencerStarted

SequencerStarted: { _type: "Started"; componentId: ComponentId }

Type declaration

SolarSystemObject

SolarSystemObject: "Mercury" | "Venus" | "Moon" | "Mars" | "Jupiter" | "Saturn" | "Neptune" | "Uranus" | "Pluto"

SpawningSequenceComponentsFailed

SpawningSequenceComponentsFailed: { _type: "SpawningSequenceComponentsFailed"; failureResponses: string[] }

Type declaration

  • _type: "SpawningSequenceComponentsFailed"
  • failureResponses: string[]

Started

Started: { _type: "Started"; runId: string }

Type declaration

  • _type: "Started"
  • runId: string

StepStatusFailure

StepStatusFailure: { _type: "Failure"; message: string }

Type declaration

  • Readonly _type: "Failure"
  • Readonly message: string

StepStatusInFlight

StepStatusInFlight: { _type: "InFlight" }

Type declaration

  • _type: "InFlight"

StepStatusPending

StepStatusPending: { _type: "Pending" }

Type declaration

  • _type: "Pending"

StepStatusSuccess

StepStatusSuccess: { _type: "Success" }

Type declaration

  • _type: "Success"

Success

Success: { _type: "Success" }

Type declaration

  • _type: "Success"

TimeUnit

TimeUnit: "days" | "hours" | "minutes" | "seconds" | "milliseconds" | "microseconds" | "nanoseconds"

TokenFactory

TokenFactory: () => string | undefined

Type declaration

    • (): string | undefined
    • A function which returns valid auth token

      Returns string | undefined

Unhandled

Unhandled: { _type: "Unhandled"; messageType: string; msg: string; state: string }

Type declaration

  • _type: "Unhandled"
  • messageType: string
  • msg: string
  • state: string

Params Type aliases

Coord

All coordinates are a Coord. i.e CometCoord, AltAzCoord, SolarSystemCoord, MinorPlanetCoord & EqCoord

Key

Key: IntKey | LongKey | ShortKey | FloatKey | DoubleKey | ByteKey | StringKey | CharKey | ChoiceKey | IntMatrixKey | ByteMatrixKey | LongMatrixKey | ShortMatrixKey | FloatMatrixKey | DoubleMatrixKey | IntArrayKey | ByteArrayKey | LongArrayKey | ShortArrayKey | FloatArrayKey | DoubleArrayKey | BooleanKey | UTCTimeKey | TAITimeKey | EqCoordKey | SolarSystemCoordKey | MinorPlanetCoordKey | CometCoordKey | AltAzCoordKey | CoordKey

Keys defined for consumption in Typescript code

Subsystem

Subsystem: typeof subsystems[number]

A union type representing TMT Subsystems

Response ADT Type aliases

AgentStatusResponse

KillResponse

KillResponse: Killed | Failed

SpawnResponse

SpawnResponse: Spawned | Failed

Variables

Const subsystems

subsystems: readonly ["AOESW", "APS", "CIS", "CLN", "CRYO", "CSW", "DMS", "DPS", "ENC", "ESEN", "ESW", "HNDL", "HQ", "IRIS", "LGSF", "M1COAT", "M1CS", "M1S", "M2COAT", "M2S", "M3S", "MODHIS", "NFIRAOS", "OSS", "REFR", "SCMS", "SER", "SOSS", "STR", "SUM", "TCS", "TINS", "WFOS", "Container"] = ...

Location Service Functions

Const AkkaConnection

Const HttpConnection

Const TcpConnection

Other Functions

Const altAzCoordKey

  • altAzCoordKey(name: string, units?: Units): BaseKey<AltAzCoordKey>

Const booleanKey

  • booleanKey(name: string, units?: Units): BaseKey<BooleanKey>

Const byteArrayKey

  • byteArrayKey(name: string, units?: Units): BaseKey<ByteArrayKey>
  • A KeyType that has suffix *-ArrayKey holds Arrays Helper functions to create Array parameters

    Parameters

    • name: string
    • Optional units: Units

    Returns BaseKey<ByteArrayKey>

Const byteKey

  • byteKey(name: string, units?: Units): BaseKey<ByteKey>

Const byteMatrixKey

  • byteMatrixKey(name: string, units?: Units): BaseKey<ByteMatrixKey>
  • A KeyType that has suffix *-MatrixKey holds Matrices Helper functions to create Matrix parameters

    Parameters

    • name: string
    • Optional units: Units

    Returns BaseKey<ByteMatrixKey>

Const charKey

  • charKey(name: string, units?: Units): BaseKey<CharKey>

Const choiceKey

  • choiceKey<L>(name: string, choices: readonly L[], units?: Units): ChoiceKeyFactory<ChoiceKey, readonly L[]>
  • A KeyType that holds Choices

    tparam

    L type for choices

    Type parameters

    • L: string

    Parameters

    • name: string

      a strig for the choice key

    • choices: readonly L[]

      list of options to be made available for the choice key

    • units: Units = ...

      the units for the key

    Returns ChoiceKeyFactory<ChoiceKey, readonly L[]>

    an instance of ChoiceKey for the given name, choices and units

Const cometCoordKey

  • cometCoordKey(name: string, units?: Units): BaseKey<CometCoordKey>

Const coordKey

  • coordKey(name: string, units?: Units): BaseKey<CoordKey>

Const doubleArrayKey

  • doubleArrayKey(name: string, units?: Units): BaseKey<DoubleArrayKey>

Const doubleKey

  • doubleKey(name: string, units?: Units): BaseKey<DoubleKey>

Const doubleMatrixKey

  • doubleMatrixKey(name: string, units?: Units): BaseKey<DoubleMatrixKey>

Const download

  • download(object: Blob, fileName: string): void

Const eqCoordKey

  • eqCoordKey(name: string, units?: Units): BaseKey<EqCoordKey>

Const floatArrayKey

  • floatArrayKey(name: string, units?: Units): BaseKey<FloatArrayKey>

Const floatKey

  • floatKey(name: string, units?: Units): BaseKey<FloatKey>

Const floatMatrixKey

  • floatMatrixKey(name: string, units?: Units): BaseKey<FloatMatrixKey>

Const intArrayKey

  • intArrayKey(name: string, units?: Units): BaseKey<IntArrayKey>

Const intKey

  • intKey(name: string, units?: Units): BaseKey<IntKey>

Const intMatrixKey

  • intMatrixKey(name: string, units?: Units): BaseKey<IntMatrixKey>

Const longArrayKey

  • longArrayKey(name: string, units?: Units): BaseKey<LongArrayKey>

Const longKey

  • longKey(name: string, units?: Units): BaseKey<LongKey>

Const longMatrixKey

  • longMatrixKey(name: string, units?: Units): BaseKey<LongMatrixKey>

Const minorPlanetCoordKey

  • minorPlanetCoordKey(name: string, units?: Units): BaseKey<MinorPlanetCoordKey>

Const shortArrayKey

  • shortArrayKey(name: string, units?: Units): BaseKey<ShortArrayKey>

Const shortKey

  • shortKey(name: string, units?: Units): BaseKey<ShortKey>

Const shortMatrixKey

  • shortMatrixKey(name: string, units?: Units): BaseKey<ShortMatrixKey>

Const solarSystemCoordKey

  • solarSystemCoordKey(name: string, units?: Units): BaseKey<SolarSystemCoordKey>

Const stringKey

  • stringKey(name: string, units?: Units): BaseKey<StringKey>

Const taiTimeKey

  • taiTimeKey(name: string, units?: Units): BaseKey<TAITimeKey>

Const utcTimeKey

  • utcTimeKey(name: string, units?: Units): BaseKey<UTCTimeKey>

Generated using TypeDoc