* @return the ID of the new Node;
* <code>Const.NODE_CREATION_FAILED</code> if creation was not successful
*/
public int createNode(String filename) {
int hash = Const.NODE_CREATION_FAILED;
LoadableProgram lp;
Utils.debugMsg("createNode()", this);
System.out.println("**"+filename+"**");
try {
// Testen, ob schon mind. ein Knoten mit diesem Prog existiert
if (loadableProgMap.containsKey(filename)) {
lp = (LoadableProgram) loadableProgMap.get(filename);
} else {
lp = new LoadableProgram(filename);
lp.load();
loadableProgMap.put(filename, lp);
}
Simulation.Node n = (Simulation.Node) sim.createNode(pf,lp);