Exemplo n.º 1
0
 public static ArrayList<StateMachine> findStateMachine(Thing thing, String name, boolean fuzzy) {
   ArrayList<StateMachine> result = new ArrayList<StateMachine>();
   for (StateMachine t : allStateMachines(thing)) {
     if (t.getName().startsWith(name)) {
       if (fuzzy) result.add(t);
       else if (t.getName().equals(name)) result.add(t);
     }
   }
   return result;
 }