Interface SpeedZone
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A SpeedZone represents a speed zone in a Map .
-
Method Summary
Modifier and TypeMethodDescriptionGets the ending coordinate of the speed zone on the path.getPath()Gets the path of this speed zone.Gets the pathIdof this speed zone.Gets the speed limit in this zone.getSpeedZoneRecord(Type speedZoneRecordType) Gets the speed zone record corresponding to the givenSpeedZonerecordType.Gets the starting coordinate of the speed zone on the path.booleanTests if this speed zone is implicit.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getPathId
Id getPathId()Gets the pathIdof this speed zone.- Returns:
- the
Idof the path - Compliance:
mandatory- This method must be implemented.
-
getPath
Gets the path of this speed zone.- Returns:
- the path
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getStartingCoordinate
Coordinate getStartingCoordinate()Gets the starting coordinate of the speed zone on the path.- Returns:
- the start of the zone
- Compliance:
mandatory- This method must be implemented.
-
getEndingCoordinate
Coordinate getEndingCoordinate()Gets the ending coordinate of the speed zone on the path.- Returns:
- the end of the zone
- Compliance:
mandatory- This method must be implemented.
-
isImplicit
boolean isImplicit()Tests if this speed zone is implicit. An implicit speed zone is generated from other information such as anObstacle.- Returns:
trueif this speed zone is implicit,falseif explicitly managed- Compliance:
mandatory- This method must be implemented.
-
getSpeedLimit
Speed getSpeedLimit()Gets the speed limit in this zone.- Returns:
- the speed limit
- Compliance:
mandatory- This method must be implemented.
-
getSpeedZoneRecord
Gets the speed zone record corresponding to the givenSpeedZonerecordType. This method is used to retrieve an object implementing the requested record. ThespeedZoneRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(speedZoneRecordType)istrue.- Parameters:
speedZoneRecordType- the type of speed zone record to retrieve- Returns:
- the speed zone record
- Throws:
NullArgumentException-speedZoneRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(speedZoneRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-