use of us.mn.state.dot.tms.ActionPlan in project iris by mnit-rtmc.
the class ActionPlanTab method selectActionPlan.
/**
* Change the selected action plan
*/
private void selectActionPlan() {
ActionPlan ap = plan_pnl.getSelectedProxy();
t_panel.setModel(new TimeActionModel(session, ap));
d_panel.setModel(new DmsActionModel(session, ap));
b_panel.setModel(new BeaconActionModel(session, ap));
c_panel.setModel(new CameraActionModel(session, ap));
l_panel.setModel(new LaneActionModel(session, ap));
m_panel.setModel(new MeterActionModel(session, ap));
}
use of us.mn.state.dot.tms.ActionPlan in project iris by mnit-rtmc.
the class BeaconActionJob method perform.
/**
* Perform all beacon actions
*/
@Override
public void perform() {
Iterator<BeaconAction> it = BeaconActionHelper.iterator();
while (it.hasNext()) {
BeaconAction ba = it.next();
ActionPlan ap = ba.getActionPlan();
if (ap.getActive())
performBeaconAction(ba, ap.getPhase());
}
}
use of us.mn.state.dot.tms.ActionPlan in project iris by mnit-rtmc.
the class CameraActionJob method perform.
/**
* Perform all camera actions
*/
@Override
public void perform() {
Iterator<CameraAction> it = CameraActionHelper.iterator();
while (it.hasNext()) {
CameraAction ca = it.next();
ActionPlan ap = ca.getActionPlan();
if (ap.getActive())
performCameraAction(ca, ap.getPhase());
}
}
use of us.mn.state.dot.tms.ActionPlan in project iris by mnit-rtmc.
the class LaneActionJob method perform.
/**
* Perform all lane actions
*/
@Override
public void perform() {
Iterator<LaneAction> it = LaneActionHelper.iterator();
while (it.hasNext()) {
LaneAction la = it.next();
ActionPlan ap = la.getActionPlan();
if (ap.getActive())
performLaneAction(la, ap.getPhase());
}
}
use of us.mn.state.dot.tms.ActionPlan in project iris by mnit-rtmc.
the class MeterActionJob method perform.
/**
* Perform all ramp meter actions
*/
@Override
public void perform() {
Iterator<MeterAction> it = MeterActionHelper.iterator();
while (it.hasNext()) {
MeterAction ma = it.next();
ActionPlan ap = ma.getActionPlan();
if (ap.getActive())
updateMeterMap(ma, ap.getPhase());
}
for (Map.Entry<RampMeterImpl, Boolean> e : meters.entrySet()) e.getKey().setOperating(e.getValue());
}
Aggregations