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 load (XMLElement myElement,XMLLoader loader) throws XMLTreeException,IOException,XMLInvalidInputException { pos=myElement.getAttribute("pos").getIntValue(); loadData.oldTlId=myElement.getAttribute("tl-id").getIntValue(); loadData.destNodeId=myElement.getAttribute("destination").getIntValue(); light=myElement.getAttribute("light").getBoolValue(); loadData.newTlId=myElement.getAttribute("newtl-id").getIntValue(); pos_new=myElement.getAttribute("new-pos").getIntValue(); Ktl=myElement.getAttribute("ktl").getIntValue(); value=myElement.getAttribute("value").getFloatValue(); }
public void load (XMLElement myElement,XMLLoader loader) throws XMLTreeException,IOException,XMLInvalidInputException { pos=myElement.getAttribute("pos").getIntValue(); loadData.tlId=myElement.getAttribute("tl-id").getIntValue(); }