Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
C
D
E
G
H
I
L
M
S
T
U
V
C
ClickableProp
- interface hw7.
ClickableProp
.
Extend the basic interface for a prop in an animation so that it can help recognize that it has been clicked.
clone()
- Method in class hw7.
LocatedVehicle
Create a copy of this LocatedVehicle object.
clone()
- Method in class hw7.
Location
Create a copy of this Location object.
clone()
- Method in class hw7.
TransitBus
Create a copy of this TransitBus object.
clone()
- Method in class hw7.
Vehicle
Create a copy of this Vehicle object.
compareTo(Object)
- Method in class hw7.
Vehicle
Compares this object with the specified object for order, based on the vehicle identification number.
D
dataReceived(TransitBusEvent)
- Method in interface hw7.
TransitBusListener
Invoked when a new TransitBus event record is available
distance(Location)
- Method in class hw7.
Location
Calculate the distance between two locations.
distanceTo(Locatable)
- Method in interface hw7.
Locatable
Calculate the distance to another Locatable object
distanceTo(Locatable)
- Method in class hw7.
LocatedVehicle
Calculate the distance to another Locatable object
doClickAction()
- Method in interface hw7.
ClickableProp
This method is called whenever this Prop was the one clicked on.
E
equals(Object)
- Method in class hw7.
Vehicle
Indicates whether some other object is "equal to" this one, based on a comparison of vehicle id numbers.
G
getLat()
- Method in class hw7.
TransitBusEvent
Get the latitude value
getLatitude()
- Method in class hw7.
Location
Get the latitude value for this Location
getLocation()
- Method in interface hw7.
Locatable
Return a reference to a copy of the Location object describing our current position.
getLocation()
- Method in class hw7.
LocatedVehicle
Return a reference to a copy of the Location object describing our current position.
getLon()
- Method in class hw7.
TransitBusEvent
Get the longitude value
getLongitude()
- Method in class hw7.
Location
Get the longitude value for this Location
getRoute()
- Method in class hw7.
TransitBus
Get the route number for this TransitBus.
getRoute()
- Method in class hw7.
TransitBusEvent
Get the current route number
getTimeValue()
- Method in class hw7.
TransitBusEvent
Get the time value string.
getVIN()
- Method in class hw7.
TransitBusEvent
Get the vehicle identification number.
getVIN()
- Method in class hw7.
Vehicle
Return the vehicle id number for this Vehicle.
H
hashCode()
- Method in class hw7.
Vehicle
Returns a hash code value for this Vehicle, namely the vehicle identification number.
I
intersects(Shape)
- Method in interface hw7.
ClickableProp
Decide if the given Shape intersects any of the Shapes that this object is displaying.
L
Locatable
- interface hw7.
Locatable
.
This interface defines the methods that a class must implement in order to be locatable in a 2-dimensional latitude / longitude world.
LocatedVehicle
- class hw7.
LocatedVehicle
.
This class implements the ability to give a Vehicle a Location.
LocatedVehicle(int, double, double)
- Constructor for class hw7.
LocatedVehicle
Create a new LocatedVehicle object with the given vehicle id number and located at the given location.
Location
- class hw7.
Location
.
This class is a way for objects to keep track of where they are in a 2-dimensional latitude & longitude based coordinate system.
Location(double, double)
- Constructor for class hw7.
Location
Create a new Location object, given a latitude and longitude.
M
main(String[])
- Static method in class hw7.
Location
Test harness for this class.
main(String[])
- Static method in class hw7.
Vehicle
Test harness for this class.
S
setLocation(double, double)
- Method in interface hw7.
Locatable
Set the values of our current Location by copying them from the arguments provided.
setLocation(double, double)
- Method in class hw7.
LocatedVehicle
Set the values of our current Location by copying them from the arguments provided.
setLocation(Location)
- Method in interface hw7.
Locatable
Set the values of our current Location by copying them from the given Location object.
setLocation(Location)
- Method in class hw7.
LocatedVehicle
Set the values of our current Location by copying them from the given Location object.
setRoute(int)
- Method in class hw7.
TransitBus
Set the route number for this TransitBus.
T
toString()
- Method in class hw7.
LocatedVehicle
Provide a String representation of this LocatedVehicle.
toString()
- Method in class hw7.
Location
Provide a String representation of our location.
toString()
- Method in class hw7.
TransitBus
Provide a String representation of this TransitBus.
toString()
- Method in class hw7.
TransitBusEvent
return a String describing this event
toString()
- Method in class hw7.
Vehicle
Provide a String representation of this Vehicle.
TransitBus
- class hw7.
TransitBus
.
This class implements a TransitBus, which is a LocatedVehicle with an integer route number.
TransitBus(int, double, double, int)
- Constructor for class hw7.
TransitBus
Create a new TransitBus object with the given vehicle id number, located at the given location, with the given route number.
TransitBusEvent
- class hw7.
TransitBusEvent
.
This class implements a simple event that is fired whenever a new TransitBus position record is received.
TransitBusEvent(Object, String, int, double, double, int)
- Constructor for class hw7.
TransitBusEvent
Create a new TransitBusEvent.
TransitBusListener
- interface hw7.
TransitBusListener
.
This interface defines the methods that must be implemented by classes that want to listen for TransitBusEvents.
U
update(double, double)
- Method in class hw7.
Location
Update the current location based on the values provided.
update(Location)
- Method in class hw7.
Location
Update the current location based on the Location object provided.
V
Vehicle
- class hw7.
Vehicle
.
This class provides an implementation for a basic vehicle that has a vehicle identification number and the ability to sort based on that number.
Vehicle(int)
- Constructor for class hw7.
Vehicle
Create a new Vehicle with the given vehicle identification number.
vin
- Variable in class hw7.
Vehicle
the vehicle identification number
C
D
E
G
H
I
L
M
S
T
U
V
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES