public class Vehicle
extends java.lang.Object
Note: The constructor gets the current time from Simulation.getTime()
.
Constructor and Description |
---|
Vehicle(char destination)
Constructs a Vehicle
|
Modifier and Type | Method and Description |
---|---|
int |
getBornTime()
Get method for the born time
|
char |
getDestination()
Get method for the destination
|
java.lang.String |
toString()
Return a string representation indicating the destination
|
public Vehicle(char destination)
destination
- the destinationpublic int getBornTime()
public char getDestination()
public java.lang.String toString()
toString
in class java.lang.Object