|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.goods.Good
public class Good
A meta class describing an economic good in the simulation.
| Field Summary | |
|---|---|
static String |
AMOUNT_RESOURCE
|
static String |
EQUIPMENT
|
static String |
ITEM_RESOURCE
|
static String |
VEHICLE
|
| Method Summary | |
|---|---|
int |
compareTo(Good o)
Compares this object with the specified object for order. |
boolean |
equals(Object object)
Checks if an object is equal to this object. |
String |
getCategory()
Gets the good's category string. |
Class |
getClassType()
Gets the good's class. |
String |
getName()
Gets the good's name. |
Object |
getObject()
Gets the good's object if any. |
int |
hashCode()
Gets the hash code value. |
String |
toString()
Gets a string representation of the good. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String AMOUNT_RESOURCE
public static final String ITEM_RESOURCE
public static final String EQUIPMENT
public static final String VEHICLE
| Method Detail |
|---|
public String getName()
public Class getClassType()
public Object getObject()
public String getCategory()
public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectobject - the object to compare.
public int hashCode()
hashCode in class Objectpublic int compareTo(Good o)
compareTo in interface Comparable<Good>o - the Object to be compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||