|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.map.DataCollectionLine
public class DataCollectionLine
The data collection line.
Constructor Summary | |
---|---|
DataCollectionLine(String name,
int id,
Point2D p1,
Point2D p2,
boolean isNoRepeat)
Create a data collection line. |
Method Summary | |
---|---|
Set<Integer> |
getAllVIN()
Get the VINs of all vehicles. |
int |
getId()
Get the ID of the line. |
String |
getName()
Get the name of the line. |
Shape |
getShape()
Get the shape of the line. |
List<Double> |
getTimes(int vin)
Get the time a vehicle passing through the line. |
boolean |
intersect(VehicleSimView v,
double time,
Point2D p1,
Point2D p2)
Whether the vehicle intersects the line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCollectionLine(String name, int id, Point2D p1, Point2D p2, boolean isNoRepeat)
name
- the name of the data collection lineid
- the ID of the linep1
- the first point of the linep2
- the second point of the lineisNoRepeat
- Whether vehicles should not be counted more than once
when it passes through the line more than once within
the NO_REPEAT_TIME_PERIOD.Method Detail |
---|
public Shape getShape()
public boolean intersect(VehicleSimView v, double time, Point2D p1, Point2D p2)
v
- the vehicletime
- the current timep1
- the first point of the vehiclep2
- the second point of the vehicle
public String getName()
public int getId()
public Set<Integer> getAllVIN()
public List<Double> getTimes(int vin)
vin
- the VIN of the vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |