OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.Signal
Implementsosid.OsidRule
Description

A Signal represents a traffic signal in a Map. The genus type indicates the type of signal. A signal has one or more States that are used to instruct traffic.

MethodgetPathId
Description

Gets the path Id.

Returnosid.id.Idthe Id of the path
CompliancemandatoryThis method must be implemented.
MethodgetPath
Description

Gets the path.

Returnosid.mapping.path.Paththe path
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetCoordinate
Description

Gets the coordinate of the signal on the path.

Returnosid.mapping.Coordinatethe coordinate
CompliancemandatoryThis method must be implemented.
MethodgetStateIds
Description

Gets the valid state Ids of this signal.

Returnosid.id.IdListthe Ids of the states
CompliancemandatoryThis method must be implemented.
MethodgetStates
Description

Gets the states of this signal.

Returnosid.process.StateListthe states
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSignalRecord
Description

Gets the signal record corresponding to the given Signal record Type. This method is used to retrieve an object implementing the requested record. The signalRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(signalRecordType) is true .

Parametersosid.type.TypesignalRecordTypethe type of signal record to retrieve
Returnosid.mapping.path.records.SignalRecordthe signal record
ErrorsNULL_ARGUMENT signalRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(signalRecordType) is false
CompliancemandatoryThis method must be implemented.