|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.im.v2i.policy.AllStopPolicy
public class AllStopPolicy
A policy that always denies every reservation request. This is used to represent an intersection that is completely closed off.
| Constructor Summary | |
|---|---|
AllStopPolicy(V2IManagerCallback im)
Create an all stop policy |
|
| Method Summary | |
|---|---|
void |
act(double timeStep)
Give the policy a chance to do any processing it might need to do in order to respond to requests, if it hasn't responded to them already. |
StatCollector<AllStopPolicy> |
getStatCollector()
Get the statistic collector. |
void |
processV2IMessage(V2IMessage msg)
Process a V2I message |
void |
setV2IManagerCallback(V2IManagerCallback im)
Set the V2I manager call-back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllStopPolicy(V2IManagerCallback im)
im - the intersection manager| Method Detail |
|---|
public void setV2IManagerCallback(V2IManagerCallback im)
setV2IManagerCallback in interface Policyim - the V2I manager's call-backpublic void act(double timeStep)
act in interface PolicytimeStep - the size of the time step to simulate, in secondspublic void processV2IMessage(V2IMessage msg)
processV2IMessage in interface Policymsg - the V2I messagepublic StatCollector<AllStopPolicy> getStatCollector()
getStatCollector in interface Policy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||