Formula formula = new ExistsNext(new AtomicProposition("a")); System.out.println(formula);produces the output
EX a
Note that the transitions and the labelling are implemented differently in the TransitionSystem class than in Lab 7 and 8. You are encouraged to study this class and the implementation of the sat methods in the classes in the logic package before attempting the sat method of the ExistsNext class.
fields | 1 marks |
constructor | 1 marks |
equals method | 1 marks |
hashCode method | 1 mark |
toString method | 1 mark |
sat method | 8 marks |
general | 3 marks |