public void saveChilds(XMLSaver saver) throws XMLTreeException, IOException, XMLCannotSaveException { super.saveChilds(saver); XMLArray.saveArray(q_table, this, saver, "q-table"); // XMLArray.saveArray(v_table,this,saver,"v-table"); XMLArray.saveArray(count, this, saver, "counts"); // XMLArray.saveArray(p_table,this,saver,"p-table"); }
public void saveChilds(XMLSaver saver) throws XMLTreeException, IOException, XMLCannotSaveException { super.saveChilds(saver); XMLArray.saveArray(alphaRoads, this, saver, "alpha-roads"); XMLArray.saveArray(getRoadIdArray(), this, saver, "roads"); XMLArray.saveArray(getSignConfigIdArray(), this, saver, "sign-configs"); XMLArray.saveArray(getSignIdArray(), this, saver, "signs"); }
public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); width = myElement.getAttribute("width").getIntValue(); alphaRoads = (Road[]) XMLArray.loadArray(this, loader); loadData.roads = (int[]) XMLArray.loadArray(this, loader); loadData.signconfigs = (int[][]) XMLArray.loadArray(this, loader); loadData.signs = (int[]) XMLArray.loadArray(this, loader); }
public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); gamma = myElement.getAttribute("gamma").getFloatValue(); random_chance = myElement.getAttribute("random-chance").getFloatValue(); q_table = (float[][][][]) XMLArray.loadArray(this, loader); // v_table=(float[][][])XMLArray.loadArray(this,loader); count = (Vector) XMLArray.loadArray(this, loader, this); // p_table=(Vector)XMLArray.loadArray(this,loader,this); }
public void saveChilds(XMLSaver saver) throws XMLTreeException, IOException, XMLCannotSaveException { super.saveChilds(saver); XMLArray.saveArray(spawnFreq, this, saver, "spawn-frequencies"); XMLArray.saveArray(destFreq, this, saver, "dest-frequencies"); }
public void load(XMLElement myElement, XMLLoader loader) throws XMLTreeException, IOException, XMLInvalidInputException { super.load(myElement, loader); spawnFreq = (SpawnFrequency[]) XMLArray.loadArray(this, loader); destFreq = (DestFrequency[][]) XMLArray.loadArray(this, loader); }