aim4.msg.v2i

## Class Away

- java.lang.Object
- - aim4.msg.v2i.V2IMessage
  - - aim4.msg.v2i.Away

-     public class Away
      extends V2IMessage

  Message sent from a Vehicle to an Intersection Manager to inform it that it has exited the Admission Control Zone.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class aim4.msg.v2i.V2IMessage

      `V2IMessage.Type`

  - ### Field Summary

    - ### Fields inherited from class aim4.msg.v2i.V2IMessage

      `messageType, size`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Away(int sourceID, int destinationID, int reservationID)` Basic class constructor with all required fields.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getReservationID()` Get the ID number of the reservation.
    `String` | `toString()`

    - ### Methods inherited from class aim4.msg.v2i.V2IMessage

      `getImId, getMessageType, getSize, getVin`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Away

          public Away(int sourceID,
              int destinationID,
              int reservationID)

      Basic class constructor with all required fields.
      Parameters:
        `sourceID` - the ID number of the Vehicle sending this message
        `destinationID` - the ID number of the IntersectionManager to which this message is being sent
        `reservationID` - the ID number of the reservation

  - ### Method Detail

    - #### getReservationID

          public int getReservationID()

      Get the ID number of the reservation.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2013. All rights reserved.