Example #1
0
 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");
 }
Example #2
0
 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");
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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");
 }
Example #6
0
 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);
 }