DecoratedSwitch.java 424 B

123456789101112131415161718192021222324
  1. package model;
  2. import classes.HolonSwitch;
  3. public class DecoratedSwitch {
  4. public enum SwitchState{
  5. Closed, Open
  6. }
  7. private SwitchState state;
  8. private HolonSwitch model;
  9. public DecoratedSwitch(HolonSwitch hSwitch, SwitchState state){
  10. this.model = hSwitch;
  11. this.state = state;
  12. }
  13. public SwitchState getState() {
  14. return state;
  15. }
  16. public HolonSwitch getModel() {
  17. return model;
  18. }
  19. }