Search in sources :

Example 1 with ActionPlan

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));
}
Also used : ActionPlan(us.mn.state.dot.tms.ActionPlan)

Example 2 with ActionPlan

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());
    }
}
Also used : BeaconAction(us.mn.state.dot.tms.BeaconAction) ActionPlan(us.mn.state.dot.tms.ActionPlan)

Example 3 with ActionPlan

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());
    }
}
Also used : CameraAction(us.mn.state.dot.tms.CameraAction) ActionPlan(us.mn.state.dot.tms.ActionPlan)

Example 4 with ActionPlan

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());
    }
}
Also used : LaneAction(us.mn.state.dot.tms.LaneAction) ActionPlan(us.mn.state.dot.tms.ActionPlan)

Example 5 with ActionPlan

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());
}
Also used : MeterAction(us.mn.state.dot.tms.MeterAction) Map(java.util.Map) HashMap(java.util.HashMap) ActionPlan(us.mn.state.dot.tms.ActionPlan)

Aggregations

ActionPlan (us.mn.state.dot.tms.ActionPlan)12 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 DMS (us.mn.state.dot.tms.DMS)2 MeterAction (us.mn.state.dot.tms.MeterAction)2 LocalDateTime (java.time.LocalDateTime)1 Date (java.util.Date)1 Map (java.util.Map)1 DefaultCellEditor (javax.swing.DefaultCellEditor)1 JComboBox (javax.swing.JComboBox)1 TableCellEditor (javax.swing.table.TableCellEditor)1 BeaconAction (us.mn.state.dot.tms.BeaconAction)1 CameraAction (us.mn.state.dot.tms.CameraAction)1 DmsAction (us.mn.state.dot.tms.DmsAction)1 DmsSignGroup (us.mn.state.dot.tms.DmsSignGroup)1 LaneAction (us.mn.state.dot.tms.LaneAction)1 PlanPhase (us.mn.state.dot.tms.PlanPhase)1 SignGroup (us.mn.state.dot.tms.SignGroup)1 ProxyColumn (us.mn.state.dot.tms.client.proxy.ProxyColumn)1 IComboBoxModel (us.mn.state.dot.tms.client.widget.IComboBoxModel)1