aim4.im.v2i.RequestHandler
Interface RequestHandler

All Known Subinterfaces:
TrafficSignalRequestHandler
All Known Implementing Classes:
AllStopRequestHandler, Approx4PhasesTrafficSignalRequestHandler, ApproxNPhasesTrafficSignalRequestHandler, ApproxSimpleTrafficSignalRequestHandler, ApproxStopSignRequestHandler, BatchModeRequestHandler, FCFSRequestHandler, GoStraightRequestHandler

public interface RequestHandler

The request handler.


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.
 

Method Detail

setBasePolicyCallback

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

Parameters:
basePolicy - the base policy's call-back

act

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

Parameters:
timeStep - the time period

processRequestMsg

void processRequestMsg(Request msg)
Process the request message.

Parameters:
msg - the request message

getStatCollector

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

Returns:
the statistic collector


Copyright © 2011. All Rights Reserved.