|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.malfunction.MalfunctionConfig
public class MalfunctionConfig
Provides configuration information about malfunctions. Uses a DOM document to get the information.
Constructor Summary | |
---|---|
MalfunctionConfig(org.w3c.dom.Document malfunctionDoc)
Constructor |
Method Summary | |
---|---|
java.util.List<Malfunction> |
getMalfunctionList()
Gets a list of malfunctions |
java.lang.String[] |
getRepairPartNamesForMalfunction(java.lang.String malfunctionName)
Gets all the repair part names for a malfunction. |
int |
getRepairPartNumber(java.lang.String malfunctionName,
java.lang.String partName)
Gets the maximum number of a repair part for a malfunction. |
int |
getRepairPartProbability(java.lang.String malfunctionName,
java.lang.String partName)
Gets the probability of a repair part for a malfunction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MalfunctionConfig(org.w3c.dom.Document malfunctionDoc)
malfunctionDoc
- DOM document containing malfunction configuration.Method Detail |
---|
public java.util.List<Malfunction> getMalfunctionList() throws java.lang.Exception
java.lang.Exception
- when malfunctions can not be resolved.public java.lang.String[] getRepairPartNamesForMalfunction(java.lang.String malfunctionName)
malfunctionName
- the name of the malfunction.
public int getRepairPartNumber(java.lang.String malfunctionName, java.lang.String partName)
malfunctionName
- the name of the malfunction.partName
- the name of the part.
public int getRepairPartProbability(java.lang.String malfunctionName, java.lang.String partName)
malfunctionName
- the name of the malfunction.partName
- the name of the part.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |