|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.resource.AmountResource
public final class AmountResource
The AmountResource class represents a type of resource that is a material measured in mass kg.
| Constructor Summary | |
|---|---|
protected |
AmountResource(java.lang.String name,
Phase phase,
boolean lifeSupport)
Constructor with life support parameter. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Checks if an object is equal to this object. |
static AmountResource |
findAmountResource(java.lang.String name)
Finds an amount resource by name. |
static java.util.Set<AmountResource> |
getAmountResources()
Gets a ummutable set of all the amount resources. |
java.lang.String |
getName()
Gets the resource's name |
Phase |
getPhase()
Gets the resources material phase. |
int |
hashCode()
Gets the hash code value. |
boolean |
isLifeSupport()
Checks if life support resource. |
java.lang.String |
toString()
Returns the resource as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AmountResource(java.lang.String name,
Phase phase,
boolean lifeSupport)
name - the resource's namephase - the material phase of the resource.lifeSupport - true if life support resource.| Method Detail |
|---|
public java.lang.String getName()
getName in interface Resourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic Phase getPhase()
public boolean isLifeSupport()
public static final AmountResource findAmountResource(java.lang.String name)
throws ResourceException
name - the name of the resource.
ResourceException - if resource could not be found.public static final java.util.Set<AmountResource> getAmountResources()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||