use of jmri.jmrit.operations.automation.actions.WaitTrainAction in project JMRI by JMRI.
the class AutomationItem method getActionList.
/**
* Gets a list of all known automation actions
*
* @return list of automation actions
*/
public List<Action> getActionList() {
List<Action> list = new ArrayList<Action>();
list.add(new NoAction());
list.add(new BuildTrainAction());
list.add(new BuildTrainIfSelectedAction());
list.add(new PrintTrainManifestAction());
list.add(new PrintTrainManifestIfSelectedAction());
list.add(new RunTrainAction());
list.add(new MoveTrainAction());
list.add(new TerminateTrainAction());
list.add(new ResetTrainAction());
list.add(new IsTrainEnRouteAction());
list.add(new WaitTrainAction());
list.add(new WaitTrainTerminatedAction());
list.add(new ActivateTimetableAction());
list.add(new ApplyTimetableAction());
list.add(new SelectTrainAction());
list.add(new DeselectTrainAction());
list.add(new PrintSwitchListAction());
// list.add(new PrintSwitchListChangesAction()); // see UpdateSwitchListAction
list.add(new UpdateSwitchListAction());
list.add(new WaitSwitchListAction());
list.add(new RunSwitchListAction());
list.add(new RunSwitchListChangesAction());
list.add(new RunAutomationAction());
list.add(new ResumeAutomationAction());
list.add(new StopAutomationAction());
list.add(new MessageYesNoAction());
list.add(new GotoAction());
list.add(new GotoSuccessAction());
list.add(new GotoFailureAction());
list.add(new HaltAction());
return list;
}
use of jmri.jmrit.operations.automation.actions.WaitTrainAction in project JMRI by JMRI.
the class AutomationItemTest method testRouteLocation.
public void testRouteLocation() {
AutomationItem automationItem = new AutomationItem("TestId");
Assert.assertNotNull("test creation", automationItem);
Assert.assertEquals("test id", "TestId", automationItem.getId());
RouteLocation rl = new RouteLocation("testId", new Location("testId", "testLocationName"));
automationItem.setRouteLocation(rl);
Assert.assertEquals("Do nothing action can't have a routeLocation", null, automationItem.getRouteLocation());
automationItem.setAction(new WaitTrainAction());
Assert.assertEquals(rl, automationItem.getRouteLocation());
}
Aggregations