|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.im.v2i.reservation.ReservationGridManager
public class ReservationGridManager
The reservation grid manager.
| Nested Class Summary | |
|---|---|
static class |
ReservationGridManager.Config
The configuration of the reservation grid manager. |
static class |
ReservationGridManager.Plan
The plan for the reservation. |
static class |
ReservationGridManager.Query
The reservation grid manager. |
static class |
ReservationGridManager.VinHistoryStatCollector
The statistic collector for VIN history. |
| Field Summary | |
|---|---|
ReservationGridManager.Config |
config
The configuration of this reservation grid manager. |
double |
staticBufferSize
The size of the static buffer, in meters, used by this policy. |
| Constructor Summary | |
|---|---|
ReservationGridManager(double currentTime,
ReservationGridManager.Config config,
Intersection intersection,
TiledArea tiledArea,
ReservationGrid reservationGrid)
Create a reservation grid manager. |
|
ReservationGridManager(ReservationGridManager.Config config,
Intersection intersection,
TiledArea tiledArea,
ReservationGrid reservationGrid)
Create a reservation grid manager. |
|
| Method Summary | |
|---|---|
Integer |
accept(ReservationGridManager.Plan plan)
Accept the proposed plan. |
void |
act(double timeStep)
Advance the time step. |
void |
cancel(Integer reservationId)
Cancel the reservation. |
ReservationGridManager.Config |
getConfig()
Get the configuration. |
List<? extends Shape> |
getDebugShapes()
Get the rectangles for the ReservationTiles that have a reservation for the current time. |
StatCollector<ReservationGridManager> |
getStatCollector()
Get the statistic collector. |
TiledArea |
getTiledArea()
Get the tiled area. |
ReservationGridManager.Plan |
query(ReservationGridManager.Query q)
Find a set of space-time tile for a particular traversal proposal in a request message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ReservationGridManager.Config config
public double staticBufferSize
| Constructor Detail |
|---|
public ReservationGridManager(ReservationGridManager.Config config,
Intersection intersection,
TiledArea tiledArea,
ReservationGrid reservationGrid)
config - the configuration of the grid managerintersection - the intersectiontiledArea - the tiled areareservationGrid - the reservation grid
public ReservationGridManager(double currentTime,
ReservationGridManager.Config config,
Intersection intersection,
TiledArea tiledArea,
ReservationGrid reservationGrid)
currentTime - the current timeconfig - the configuration of the grid managerintersection - the intersectiontiledArea - the tiled areareservationGrid - the reservation grid| Method Detail |
|---|
public void act(double timeStep)
timeStep - the time steppublic ReservationGridManager.Config getConfig()
public TiledArea getTiledArea()
public StatCollector<ReservationGridManager> getStatCollector()
public ReservationGridManager.Plan query(ReservationGridManager.Query q)
query in interface ReservationManager<ReservationGridManager.Query,ReservationGridManager.Plan,Integer>q - the query object
public Integer accept(ReservationGridManager.Plan plan)
accept in interface ReservationManager<ReservationGridManager.Query,ReservationGridManager.Plan,Integer>plan - the plan genreated by query()
public void cancel(Integer reservationId)
cancel in interface ReservationManager<ReservationGridManager.Query,ReservationGridManager.Plan,Integer>reservationId - the reservationpublic List<? extends Shape> getDebugShapes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||