|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.malfunction.MalfunctionConfig
public class MalfunctionConfig
Provides configuration information about malfunctions. Uses a DOM document to get the information.
| Constructor Summary | |
|---|---|
MalfunctionConfig(org.jdom.Document malfunctionDoc)
Constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
List<Malfunction> |
getMalfunctionList()
Gets a list of malfunctions |
String[] |
getRepairPartNamesForMalfunction(String malfunctionName)
Gets all the repair part names for a malfunction. |
int |
getRepairPartNumber(String malfunctionName,
String partName)
Gets the maximum number of a repair part for a malfunction. |
int |
getRepairPartProbability(String malfunctionName,
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.jdom.Document malfunctionDoc)
malfunctionDoc - DOM document containing malfunction configuration.| Method Detail |
|---|
public List<Malfunction> getMalfunctionList()
Exception - when malfunctions can not be resolved.public String[] getRepairPartNamesForMalfunction(String malfunctionName)
malfunctionName - the name of the malfunction.
public int getRepairPartNumber(String malfunctionName,
String partName)
malfunctionName - the name of the malfunction.partName - the name of the part.
public int getRepairPartProbability(String malfunctionName,
String partName)
malfunctionName - the name of the malfunction.partName - the name of the part.
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||