@Test public void testSetSymbolicVariableList() { System.out.println("setSymbolicVariableList"); LinkedList<SymbolicVariable> symbolicVariableList = new LinkedList<>(); String id = "test"; InternalTypeContainer internalTypeContainer = new InternalTypeContainer(InternalTypeRep.INTEGER); SymbolicVariable var = new SymbolicVariable(id, internalTypeContainer); symbolicVariableList.add(var); SymbolicVariable var2 = new SymbolicVariable("test2", internalTypeContainer); symbolicVariableList.add(var2); SymbolicVariableList instance = new SymbolicVariableList(); instance.setSymbolicVariableList(symbolicVariableList); assert (((LinkedList<SymbolicVariable>)instance.getSymbolicVariables()).getFirst().getId().equals("test")); assert (instance.getSymbolicVariables().get(1).getId().equals("test2")); }
public synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList) { this.symbolicVariableList.clear(); for (SymbolicVariable var : symbolicVariableList) { this.symbolicVariableList.add(var); listenerList.forEach((VariableListListener listener) -> { listener.addedVar(var); }); } }
SymbolicVariableList { public synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList) { this.symbolicVariableList.clear(); for (SymbolicVariable var : symbolicVariableList) { this.symbolicVariableList.add(var); listenerList.forEach((VariableListListener listener) -> { listener.addedVar(var); }); } } }
SymbolicVariableList { public synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList) { this.symbolicVariableList.clear(); for (SymbolicVariable var : symbolicVariableList) { this.symbolicVariableList.add(var); listenerList.forEach((VariableListListener listener) -> { listener.addedVar(var); }); } } SymbolicVariableList(); }
SymbolicVariableList { public synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList) { this.symbolicVariableList.clear(); for (SymbolicVariable var : symbolicVariableList) { this.symbolicVariableList.add(var); listenerList.forEach((VariableListListener listener) -> { listener.addedVar(var); }); } } SymbolicVariableList(); synchronized void addSymbolicVariable(String id, InternalTypeContainer internalTypeContainer); synchronized boolean isVarIDAllowed(String id); synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList); synchronized List<SymbolicVariable> getSymbolicVariables(); synchronized List<SymbolicVariable> getSymbolicVariablesCloned(); synchronized boolean removeSymbolicVariable(String id); synchronized void removeSymbolicVariable(int index); synchronized void addListener(VariableListListener listener); synchronized void removeListener(VariableListListener listener); }
SymbolicVariableList { public synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList) { this.symbolicVariableList.clear(); for (SymbolicVariable var : symbolicVariableList) { this.symbolicVariableList.add(var); listenerList.forEach((VariableListListener listener) -> { listener.addedVar(var); }); } } SymbolicVariableList(); synchronized void addSymbolicVariable(String id, InternalTypeContainer internalTypeContainer); synchronized boolean isVarIDAllowed(String id); synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList); synchronized List<SymbolicVariable> getSymbolicVariables(); synchronized List<SymbolicVariable> getSymbolicVariablesCloned(); synchronized boolean removeSymbolicVariable(String id); synchronized void removeSymbolicVariable(int index); synchronized void addListener(VariableListListener listener); synchronized void removeListener(VariableListListener listener);  }