MATSIM
Public Member Functions | Private Attributes | List of all members
org.matsim.vehicles.VehicleImpl Class Reference
Inheritance diagram for org.matsim.vehicles.VehicleImpl:
Inheritance graph
[legend]

Public Member Functions

 VehicleImpl (Id< Vehicle > id, VehicleType type)
 
Id< VehiclegetId ()
 
VehicleType getType ()
 
String toString ()
 

Private Attributes

VehicleType type
 
Id< Vehicleid
 

Detailed Description

Definition at line 25 of file VehicleImpl.java.

Constructor & Destructor Documentation

org.matsim.vehicles.VehicleImpl.VehicleImpl ( Id< Vehicle id,
VehicleType  type 
)

Definition at line 30 of file VehicleImpl.java.

References org.matsim.core.gbl.Gbl.assertNotNull(), org.matsim.vehicles.VehicleImpl.id, and org.matsim.vehicles.VehicleImpl.type.

30  {
31  Gbl.assertNotNull(id);
32  Gbl.assertNotNull(type);
33  this.id = id;
34  this.type = type;
35  }

Here is the call graph for this function:

Member Function Documentation

Id<Vehicle> org.matsim.vehicles.VehicleImpl.getId ( )

Definition at line 38 of file VehicleImpl.java.

References org.matsim.vehicles.VehicleImpl.id.

38  {
39  return id;
40  }
VehicleType org.matsim.vehicles.VehicleImpl.getType ( )

Implements org.matsim.vehicles.Vehicle.

Definition at line 43 of file VehicleImpl.java.

References org.matsim.vehicles.VehicleImpl.type.

43  {
44  return this.type;
45  }
String org.matsim.vehicles.VehicleImpl.toString ( )

Definition at line 48 of file VehicleImpl.java.

48  {
49  return "[ID=" + id + " | type=" + type.toString() + "]" ;
50  }

Member Data Documentation

VehicleType org.matsim.vehicles.VehicleImpl.type
private
Id<Vehicle> org.matsim.vehicles.VehicleImpl.id
private

The documentation for this class was generated from the following file: