|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.gjt.universe.DBItem
|
+--org.gjt.universe.CostBase
This class (and subclasses) represents the "cost" or resources involved in creating or maintaining a particular thing. See the Cost Overview and extended classes for more information.
Note: IMO the CostBase class is extensible, but not a DBItem. The class should resemble Coord in terms of its role as Cost objects aren't independent of their context.
| Field Summary | |
private static CostID |
currentID
|
private CostID |
ID
|
| Constructor Summary | |
CostBase()
Constructor - makes ID for cost object |
|
CostBase(boolean dummy)
Constructor for CostUndefined |
|
| Method Summary | |
CostID |
getID()
Return the ID |
Index |
getIndex()
See getID() in the subclasses for a typed version. |
java.lang.String |
getName()
|
static void |
resetCostID()
|
| Methods inherited from class org.gjt.universe.DBItem |
getLocation, getOwner, specificDisplayDebug |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static CostID currentID
private CostID ID
| Constructor Detail |
public CostBase()
public CostBase(boolean dummy)
| Method Detail |
public static void resetCostID()
public CostID getID()
public Index getIndex()
DBItem
getIndex in class DBItempublic java.lang.String getName()
getName in class DBItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||