|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.malfunction.MalfunctionFactory
public final class MalfunctionFactory
This class is a factory for Malfunction objects.
| Constructor Summary | |
|---|---|
MalfunctionFactory(MalfunctionConfig config)
Constructs a MalfunctionFactory object. |
|
| Method Summary | |
|---|---|
static java.util.Collection<Malfunctionable> |
getAssociatedMalfunctionables(Settlement settlement)
Gets all malfunctionables associated with a settlement. |
Malfunction |
getMalfunction(java.util.Collection<java.lang.String> scope)
Gets a randomly-picked malfunction for a given unit scope. |
static java.util.Collection<Malfunctionable> |
getMalfunctionables(Malfunctionable entity)
Gets a collection of malfunctionable entities local to the given malfunctionable entity. |
static java.util.Collection<Malfunctionable> |
getMalfunctionables(Person person)
Gets a collection of malfunctionable entities local to the given person. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MalfunctionFactory(MalfunctionConfig config)
throws java.lang.Exception
config - malfunction configuration DOM document.
java.lang.Exception - when malfunction list could not be found.| Method Detail |
|---|
public Malfunction getMalfunction(java.util.Collection<java.lang.String> scope)
scope - a collection of scope strings defining the unit.
public static java.util.Collection<Malfunctionable> getMalfunctionables(Person person)
public static java.util.Collection<Malfunctionable> getMalfunctionables(Malfunctionable entity)
public static java.util.Collection<Malfunctionable> getAssociatedMalfunctionables(Settlement settlement)
settlement - the settlement.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||