ITrafficLightCtrlStatemachine.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /** Copyright (c) 2012-2015 committers of YAKINDU and others.
  2. All rights reserved. This program and the accompanying materials
  3. are made available under the terms of the Eclipse Public License v1.0
  4. which accompanies this distribution, and is available at
  5. http://www.eclipse.org/legal/epl-v10.html
  6. Contributors:
  7. committers of YAKINDU - initial API and implementation
  8. � */
  9. package traffic.light.trafficlightctrl;
  10. import traffic.light.IStatemachine;
  11. import traffic.light.ITimerCallback;
  12. public interface ITrafficLightCtrlStatemachine extends ITimerCallback, IStatemachine {
  13. public interface SCITrafficLight {
  14. public boolean getRed();
  15. public void setRed(boolean value);
  16. public boolean getYellow();
  17. public void setYellow(boolean value);
  18. public boolean getGreen();
  19. public void setGreen(boolean value);
  20. }
  21. public SCITrafficLight getSCITrafficLight();
  22. public interface SCIPedestrian {
  23. public boolean getRequest();
  24. public void setRequest(boolean value);
  25. public boolean getRed();
  26. public void setRed(boolean value);
  27. public boolean getGreen();
  28. public void setGreen(boolean value);
  29. }
  30. public SCIPedestrian getSCIPedestrian();
  31. public interface SCInterface {
  32. public void raisePedestrianRequest();
  33. public void raiseOnOff();
  34. public void setSCInterfaceOperationCallback(SCInterfaceOperationCallback operationCallback);
  35. }
  36. public interface SCInterfaceOperationCallback {
  37. public void synchronize();
  38. }
  39. public SCInterface getSCInterface();
  40. }