public synchronized void addToState(BNetwork newState){
  for (  ChanceNode cn : new ArrayList<ChanceNode>(newState.getChanceNodes())) {
    cn.setId(cn.getId() + "'");
    addNode(cn);
    connectToPredictions(cn);
  }
}

public synchronized void addToState ( BNetwork newState ) { for ( ChanceNode cn : new ArrayList < ChanceNode > ( newState . getChanceNodes ( ) ) ) { cn . setId ( cn . getId ( ) + "'" ) ; addNode ( cn ) ; connectToPredictions ( cn ) ; } }
merges the dialogue state included as argument into the current one .
