aim4.im.v2i.policy
Interface Policy

All Known Implementing Classes:
AllStopPolicy, BasePolicy, TimeoutPolicy

public interface Policy

An interface for intersection control policies for V2IManagers.


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<?> getStatCollector()
          Get the statistic collector.
 void processV2IMessage(V2IMessage msg)
          Process a V2I message
 void setV2IManagerCallback(V2IManagerCallback im)
          Set the V2I manager call-back.
 

Method Detail

setV2IManagerCallback

void setV2IManagerCallback(V2IManagerCallback im)
Set the V2I manager call-back.

Parameters:
im - the V2I manager's call-back

act

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. Only used for policies that don't respond immediately to requests.

Parameters:
timeStep - the size of the time step to simulate, in seconds

processV2IMessage

void processV2IMessage(V2IMessage msg)
Process a V2I message

Parameters:
msg - the V2I message

getStatCollector

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

Returns:
the statistic collector


Copyright © 2011. All Rights Reserved.