|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.SIFDataObject
com.edustructures.sifworks.trans.BusPositionInfo
public class BusPositionInfo
This object exposes telematics information to the zone. SIF_Events are reported.
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
BusPositionInfo()
Constructor |
|
BusPositionInfo(java.lang.String busInfoRefId,
java.util.Calendar date,
java.util.Calendar time,
GridLocation gridLocation)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
BusDriver |
getBusDriver()
Gets the value of the <BusDriver> element. |
java.lang.String |
getBusInfoRefId()
Gets the value of the BusInfoRefId attribute. |
BusStaffList |
getBusStaffList()
Gets the value of the <BusStaffList> element. |
java.util.Calendar |
getDate()
Gets the value of the <Date> element. |
GridLocation |
getGridLocation()
Gets the value of the <GridLocation> element. |
java.lang.String |
getKey()
Gets the key of this object |
ElementDef[] |
getKeyFields()
Gets the metadata fields that make up the key of this object |
Odometer |
getOdometer()
Gets the value of the <Odometer> element. |
java.lang.String |
getOtherStatus()
Gets the value of the <OtherStatus> element. |
RouteStatus |
getRouteStatus()
Gets the value of the <RouteStatus> element. |
Speedometer |
getSpeedometer()
Gets the value of the <Speedometer> element. |
TransStudents |
getStudents()
Gets the value of the <Students> element. |
java.lang.String |
getTelematicsId()
Gets the value of the <TelematicsId> element. |
TelemetryList |
getTelemetryList()
Gets the value of the <TelemetryList> element. |
java.util.Calendar |
getTime()
Gets the value of the <Time> element. |
void |
removeBusDriver()
Removes the BusDriver child element previously created by calling setBusDriver |
void |
removeBusStaffList()
Removes the BusStaffList child element previously created by calling setBusStaffList |
void |
removeGridLocation()
Removes the GridLocation child element previously created by calling setGridLocation |
void |
removeOdometer()
Removes the Odometer child element previously created by calling setOdometer |
void |
removeRouteStatus()
Removes the RouteStatus child element previously created by calling setRouteStatus |
void |
removeSpeedometer()
Removes the Speedometer child element previously created by calling setSpeedometer |
void |
removeStudents()
Removes the Students child element previously created by calling setStudents |
void |
removeTelemetryList()
Removes the TelemetryList child element previously created by calling setTelemetryList |
void |
setBusDriver(BusDriver value)
Sets the value of the <BusDriver> element. |
void |
setBusDriver(StaffBoardingStatus status)
Sets the value of the <BusDriver> child element. |
void |
setBusInfoRefId(java.lang.String value)
Sets the value of the BusInfoRefId attribute. |
void |
setBusStaffList(BusStaffList value)
Sets the value of the <BusStaffList> element. |
void |
setDate(java.util.Calendar value)
Sets the value of the <Date> element. |
void |
setGridLocation(java.math.BigDecimal latitude,
java.math.BigDecimal longitude)
Sets the value of the <GridLocation> child element. |
void |
setGridLocation(GridLocation value)
Sets the value of the <GridLocation> element. |
void |
setOdometer(DistanceUnit unit,
java.lang.String value)
Sets the value of the <Odometer> child element. |
void |
setOdometer(Odometer value)
Sets the value of the <Odometer> element. |
void |
setOtherStatus(java.lang.String value)
Sets the value of the <OtherStatus> element. |
void |
setRouteStatus(RouteStatus value)
Sets the value of the <RouteStatus> element. |
void |
setRouteStatus(RouteStatusStatus status,
java.lang.String busRouteInfoRefId,
java.lang.String value)
Sets the value of the <RouteStatus> child element. |
void |
setSpeedometer(DistanceUnit unit,
java.lang.String value)
Sets the value of the <Speedometer> child element. |
void |
setSpeedometer(Speedometer value)
Sets the value of the <Speedometer> element. |
void |
setStudents(TransStudents value)
Sets the value of the <Students> element. |
void |
setTelematicsId(java.lang.String value)
Sets the value of the <TelematicsId> element. |
void |
setTelemetryList(TelemetryList value)
Sets the value of the <TelemetryList> element. |
void |
setTime(java.util.Calendar value)
Sets the value of the <Time> element. |
| Methods inherited from class com.edustructures.sifworks.SIFDataObject |
|---|
addSIFExtendedElement, clone, getElementOrAttribute, getObjectTag, getObjectType, getRefId, getSIFExtendedElement, getSIFExtendedElements, getSIFExtendedElementsContainer, getSIFMetadata, getSIFVersion, setElementOrAttribute, setElementOrAttribute, setElementOrAttribute, setSIFExtendedElements, setSIFExtendedElementsContainer, setSIFMetadata, setSIFVersion, toXML |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getSIFValue, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setTextValue, setXmlId, tag |
| Methods inherited from class com.edustructures.sifworks.Element |
|---|
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BusPositionInfo()
public BusPositionInfo(java.lang.String busInfoRefId,
java.util.Calendar date,
java.util.Calendar time,
GridLocation gridLocation)
busInfoRefId - The GUID that identifies the bus. This object only has meaning as current data for this particular bus.date - The date of the report from the bus.time - The time of the report from the bus.gridLocation - The location of the bus.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getBusInfoRefId()
BusInfoRefId attribute.
The SIF specification defines the meaning of this attribute as: "The GUID that identifies the bus. This object only has meaning as current data for this particular bus."
BusInfoRefId attribute of this object.public void setBusInfoRefId(java.lang.String value)
BusInfoRefId attribute.
The SIF specification defines the meaning of this attribute as: "The GUID that identifies the bus. This object only has meaning as current data for this particular bus."
value - A String objectpublic java.util.Calendar getDate()
<Date> element.
The SIF specification defines the meaning of this element as: "The date of the report from the bus."
Date element of this object.public void setDate(java.util.Calendar value)
<Date> element.
The SIF specification defines the meaning of this element as: "The date of the report from the bus."
value - A Calendar objectpublic java.util.Calendar getTime()
<Time> element.
The SIF specification defines the meaning of this element as: "The time of the report from the bus."
Time element of this object.public void setTime(java.util.Calendar value)
<Time> element.
The SIF specification defines the meaning of this element as: "The time of the report from the bus."
value - A Calendar objectpublic void setGridLocation(GridLocation value)
<GridLocation> element.
The SIF specification defines the meaning of this element as: "The location of the bus."
value - A GridLocation object
public void setGridLocation(java.math.BigDecimal latitude,
java.math.BigDecimal longitude)
<GridLocation> child element.
This form of setGridLocation is provided as a convenience method
that is functionally equivalent to the version of setGridLocation
that accepts a single GridLocation object.
latitude - The latitude coordinate of this location expressed in decimal format (e.g. "41.7699657")longitude - The longitude coordinate of this location expressed in decimal format (e.g. "79.548445")public GridLocation getGridLocation()
<GridLocation> element.
The SIF specification defines the meaning of this element as: "The location of the bus."
GridLocation objectpublic void removeGridLocation()
GridLocation child element previously created by calling setGridLocation
public java.lang.String getTelematicsId()
<TelematicsId> element.
The SIF specification defines the meaning of this element as: "ID of the hardware unit on the bus that tracks & reports location and status. The interpretation of the content is deployment specific, but the format must be compact."
TelematicsId element of this object.public void setTelematicsId(java.lang.String value)
<TelematicsId> element.
The SIF specification defines the meaning of this element as: "ID of the hardware unit on the bus that tracks & reports location and status. The interpretation of the content is deployment specific, but the format must be compact."
value - A String objectpublic void setTelemetryList(TelemetryList value)
<TelemetryList> element.
The SIF specification defines the meaning of this element as: "Indicators and values provided by the hardware along with this position snapshot. For events, it is safe to assume that one of these items triggered the hardware to issue an update."
value - A TelemetryList objectpublic TelemetryList getTelemetryList()
<TelemetryList> element.
The SIF specification defines the meaning of this element as: "Indicators and values provided by the hardware along with this position snapshot. For events, it is safe to assume that one of these items triggered the hardware to issue an update."
TelemetryList objectpublic void removeTelemetryList()
TelemetryList child element previously created by calling setTelemetryList
public void setBusDriver(BusDriver value)
<BusDriver> element.
The SIF specification defines the meaning of this element as: "Information identifying the driver."
value - A BusDriver objectpublic void setBusDriver(StaffBoardingStatus status)
<BusDriver> child element.
This form of setBusDriver is provided as a convenience method
that is functionally equivalent to the version of setBusDriver
that accepts a single BusDriver object.
status - Boarding status of the driver.public BusDriver getBusDriver()
<BusDriver> element.
The SIF specification defines the meaning of this element as: "Information identifying the driver."
BusDriver objectpublic void removeBusDriver()
BusDriver child element previously created by calling setBusDriver
public void setBusStaffList(BusStaffList value)
<BusStaffList> element.
The SIF specification defines the meaning of this element as: "List identifying other staff. This may include aides, nurses, proctors, etc."
value - A BusStaffList objectpublic BusStaffList getBusStaffList()
<BusStaffList> element.
The SIF specification defines the meaning of this element as: "List identifying other staff. This may include aides, nurses, proctors, etc."
BusStaffList objectpublic void removeBusStaffList()
BusStaffList child element previously created by calling setBusStaffList
public void setRouteStatus(RouteStatus value)
<RouteStatus> element.
The SIF specification defines the meaning of this element as: "If the bus is running a route, this element must be included in the object. Absence means the bus is not operating a route."
value - A RouteStatus object
public void setRouteStatus(RouteStatusStatus status,
java.lang.String busRouteInfoRefId,
java.lang.String value)
<RouteStatus> child element.
This form of setRouteStatus is provided as a convenience method
that is functionally equivalent to the version of setRouteStatus
that accepts a single RouteStatus object.
status - Status of the route.busRouteInfoRefId - GUIDvalue - Gets or sets the content value of the <RouteStatus> elementpublic RouteStatus getRouteStatus()
<RouteStatus> element.
The SIF specification defines the meaning of this element as: "If the bus is running a route, this element must be included in the object. Absence means the bus is not operating a route."
RouteStatus objectpublic void removeRouteStatus()
RouteStatus child element previously created by calling setRouteStatus
public java.lang.String getOtherStatus()
<OtherStatus> element.
The SIF specification defines the meaning of this element as: "If the bus is not running a regularly scheduled route but is transporting (or positioning to transport) passengers as approved and directed by the school district, this element describes the activity. It's also used for maintenance, repair, and other authorized movements. This element is mutually exclusive with RouteStatus. Absence of both RouteStatus and OtherStatus is acceptable, but may indicate unauthorized operation."
OtherStatus element of this object.public void setOtherStatus(java.lang.String value)
<OtherStatus> element.
The SIF specification defines the meaning of this element as: "If the bus is not running a regularly scheduled route but is transporting (or positioning to transport) passengers as approved and directed by the school district, this element describes the activity. It's also used for maintenance, repair, and other authorized movements. This element is mutually exclusive with RouteStatus. Absence of both RouteStatus and OtherStatus is acceptable, but may indicate unauthorized operation."
value - A String objectpublic void setOdometer(Odometer value)
<Odometer> element.
The SIF specification defines the meaning of this element as: "Current odometer reading."
value - A Odometer object
public void setOdometer(DistanceUnit unit,
java.lang.String value)
<Odometer> child element.
This form of setOdometer is provided as a convenience method
that is functionally equivalent to the version of setOdometer
that accepts a single Odometer object.
unit - Units used in the odometer reading.value - Gets or sets the content value of the <Odometer> elementpublic Odometer getOdometer()
<Odometer> element.
The SIF specification defines the meaning of this element as: "Current odometer reading."
Odometer objectpublic void removeOdometer()
Odometer child element previously created by calling setOdometer
public void setSpeedometer(Speedometer value)
<Speedometer> element.
The SIF specification defines the meaning of this element as: "Current speedometer reading."
value - A Speedometer object
public void setSpeedometer(DistanceUnit unit,
java.lang.String value)
<Speedometer> child element.
This form of setSpeedometer is provided as a convenience method
that is functionally equivalent to the version of setSpeedometer
that accepts a single Speedometer object.
unit - Units used in the speedometer reading. value - Gets or sets the content value of the <Speedometer> elementpublic Speedometer getSpeedometer()
<Speedometer> element.
The SIF specification defines the meaning of this element as: "Current speedometer reading."
Speedometer objectpublic void removeSpeedometer()
Speedometer child element previously created by calling setSpeedometer
public void setStudents(TransStudents value)
<Students> element.
The SIF specification defines the meaning of this element as: "List of students and their status. The complete list may be sent with some events (e.g. change in RouteStatus) per district policy, but it is more typical of responses."
value - A TransStudents objectpublic TransStudents getStudents()
<Students> element.
The SIF specification defines the meaning of this element as: "List of students and their status. The complete list may be sent with some events (e.g. change in RouteStatus) per district policy, but it is more typical of responses."
TransStudents objectpublic void removeStudents()
Students child element previously created by calling setStudents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||