Public Member Functions | |
| KnownVehicle (Vehicle vehicle, long ID, int x, int y, int time, double speed, boolean isEncrypted) | |
| void | setX (int x) | 
| void | setY (int y) | 
| void | setLastUpdate (int time) | 
| void | setSpeed (double speed) | 
| int | getX () | 
| int | getY () | 
| long | getID () | 
| double | getSpeed () | 
| Vehicle | getVehicle () | 
| int | getLastUpdate () | 
| KnownVehicle | getNext () | 
| KnownVehicle | getPrevious () | 
| void | setNext (KnownVehicle next) | 
| void | setPrevious (KnownVehicle previous) | 
| boolean | isEncrypted_ () | 
| void | setEncrypted_ (boolean isEncrypted_) | 
Protected Attributes | |
| KnownVehicle | previous_ | 
| KnownVehicle | next_ | 
A known vehicle (discovered by receiving a beacon). The variables represent what is known and might differ from the real ones if it hasn't been updated for some time!
      
  | 
  inline | 
Instantiates a new known vehicle.
| vehicle | the vehicle | 
| ID | the ID of the vehicle | 
| x | the x coordinate | 
| y | the y coordinate | 
| time | the current time | 
| speed | the current speed | 
| isEncrypted | if Beacon was encrypted | 
      
  | 
  inline | 
Gets the ID.
      
  | 
  inline | 
Gets when this vehicle was last updated.
      
  | 
  inline | 
Returns the KnownVehicle after this one.
      
  | 
  inline | 
Returns the KnownVehicle before this one.
      
  | 
  inline | 
Gets the speed
      
  | 
  inline | 
Gets the vehicle.
      
  | 
  inline | 
Gets the x coordinate.
      
  | 
  inline | 
Gets the y coordinate.
      
  | 
  inline | 
Updates the last modification time.
| time | the current time | 
      
  | 
  inline | 
Sets the KnownVehicle after this one.
| next | the object which comes after this one | 
      
  | 
  inline | 
Sets the KnownVehicle before this one.
| previous | the object which comes before this one | 
      
  | 
  inline | 
Updates the speed.
| speed | the current speed | 
      
  | 
  inline | 
Updates the x coordinate.
| x | the x coordinate | 
      
  | 
  inline | 
Updates the y coordinate.
| y | the y coordinate | 
      
  | 
  protected | 
Link to the next object.
      
  | 
  protected | 
Link to the previous object.
 1.8.3.1