|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hattrickorganizer.model.FormulaFactors
public class FormulaFactors
DOCUMENT ME!
| Field Summary | |
|---|---|
protected static int |
ANZ_FAKTOROBJEKTE
Konstante wieviel PositionsObjekte es gibt |
protected static FormulaFactors |
m_clInstance
singelton |
| Method Summary | |
|---|---|
FactorObject[] |
getAllObj()
liefert Array mit allen Objekten |
static java.util.Date |
getLastChange()
Get last change date |
FactorObject |
getPositionFactor(byte playerPosition)
Return a FactorObject for hoPosition |
void |
importDefaults()
Import star formulas from the default XML. |
void |
init()
Initialize member with 'hardcoded' default values. |
static FormulaFactors |
instance()
Get the singleton FormulaFactors instance. |
void |
readFromXML(java.lang.String dateiname)
Read an XML file with star formula configurations. |
FactorObject |
readObject(java.lang.String tagname,
org.w3c.dom.Element root)
Read the single skill contributions for a position. |
static void |
resetLastChange()
Reset last change date to now |
void |
save()
gesaved |
void |
setPositionFactor(byte pos,
FactorObject factorObject)
set factorObject for a hoPosition |
void |
write2XML(java.lang.String filename)
Write the currently configured values into a specified file. |
protected void |
writeFaktorObj(org.w3c.dom.Document doc,
FactorObject obj,
org.w3c.dom.Element root,
java.lang.String tagName)
Add data for a single position to the XML tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static FormulaFactors m_clInstance
protected static final int ANZ_FAKTOROBJEKTE
| Method Detail |
|---|
public static FormulaFactors instance()
public FactorObject[] getAllObj()
public void importDefaults()
public void init()
public void readFromXML(java.lang.String dateiname)
dateiname - the filename of the xml config
public FactorObject readObject(java.lang.String tagname,
org.w3c.dom.Element root)
tagname - tag name for a positionroot - the XML root element
public void save()
public void write2XML(java.lang.String filename)
protected void writeFaktorObj(org.w3c.dom.Document doc,
FactorObject obj,
org.w3c.dom.Element root,
java.lang.String tagName)
public FactorObject getPositionFactor(byte playerPosition)
playerPosition -
public void setPositionFactor(byte pos,
FactorObject factorObject)
hoPosition - factorObject - public static java.util.Date getLastChange()
public static void resetLastChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||