aim4.im.v2i.RequestHandler
Class ApproxStopSignRequestHandler

java.lang.Object
  extended by aim4.im.v2i.RequestHandler.ApproxStopSignRequestHandler
All Implemented Interfaces:
RequestHandler

public class ApproxStopSignRequestHandler
extends Object
implements RequestHandler

The approximate stop sign request handler.


Field Summary
static double DEFAULT_TIME_WINDOW_BEFORE_LAST_EXIT_VEHICLE
          The time window before the last vehicle inside the intersection leaving the intersection such that other vehicles can consider entering the intersection.
 
Constructor Summary
ApproxStopSignRequestHandler()
           
 
Method Summary
 void act(double timeStep)
          Let the request handler to act for a given time period.
 StatCollector<?> getStatCollector()
          Get the statistic collector.
 void processRequestMsg(Request msg)
          Process the request message.
 void setBasePolicyCallback(BasePolicyCallback basePolicy)
          Set the base policy call-back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIME_WINDOW_BEFORE_LAST_EXIT_VEHICLE

public static final double DEFAULT_TIME_WINDOW_BEFORE_LAST_EXIT_VEHICLE
The time window before the last vehicle inside the intersection leaving the intersection such that other vehicles can consider entering the intersection.

See Also:
Constant Field Values
Constructor Detail

ApproxStopSignRequestHandler

public ApproxStopSignRequestHandler()
Method Detail

setBasePolicyCallback

public void setBasePolicyCallback(BasePolicyCallback basePolicy)
Set the base policy call-back.

Specified by:
setBasePolicyCallback in interface RequestHandler
Parameters:
basePolicy - the base policy's call-back

act

public void act(double timeStep)
Let the request handler to act for a given time period.

Specified by:
act in interface RequestHandler
Parameters:
timeStep - the time period

processRequestMsg

public void processRequestMsg(Request msg)
Process the request message.

Specified by:
processRequestMsg in interface RequestHandler
Parameters:
msg - the request message

getStatCollector

public StatCollector<?> getStatCollector()
Get the statistic collector.

Specified by:
getStatCollector in interface RequestHandler
Returns:
the statistic collector


Copyright © 2011. All Rights Reserved.