Ejemplo n.º 1
0
 /** @return the names of the petri nets that have changed */
 public Set<String> getNetsChanged() {
   Set<String> changed = new HashSet<>();
   for (PetriNetController controller : netControllers.values()) {
     if (controller.hasChanged()) {
       changed.add(controller.getPetriNet().getNameValue());
     }
   }
   return changed;
 }
Ejemplo n.º 2
0
 /** @return true if the current petri net has changed */
 public boolean hasCurrentPetriNetChanged() {
   PetriNetController activeController = getActivePetriNetController();
   return activeController != null && activeController.hasChanged();
 }