|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.resource.Phase
public final class Phase
A phase of an amount resource.
| Field Summary | |
|---|---|
static Phase |
GAS
|
static Phase |
LIQUID
|
static Phase |
SOLID
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Checks if an object is equal to this object. |
static Phase |
findPhase(java.lang.String name)
Finds a phase by name. |
java.lang.String |
getName()
Gets the name of the phase. |
static java.util.Set<Phase> |
getPhases()
Gets a ummutable set of all the phases. |
int |
hashCode()
Gets the hash code value. |
java.lang.String |
toString()
Gets the string value for the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Phase GAS
public static final Phase LIQUID
public static final Phase SOLID
| Method Detail |
|---|
public java.lang.String getName()
public static final Phase findPhase(java.lang.String name)
throws java.lang.Exception
name - the name of the phase.
java.lang.Exception - if phase could not be found.public static final java.util.Set<Phase> getPhases()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||