org.gjt.universe
Class CostBase

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.CostBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Cost_001, CostUndefined

public abstract class CostBase
extends DBItem

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.

See Also:
Serialized Form

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

currentID

private static CostID currentID

ID

private CostID ID
Constructor Detail

CostBase

public CostBase()
Constructor - makes ID for cost object


CostBase

public CostBase(boolean dummy)
Constructor for CostUndefined

Method Detail

resetCostID

public static void resetCostID()

getID

public CostID getID()
Return the ID


getIndex

public Index getIndex()
Description copied from class: DBItem
See getID() in the subclasses for a typed version.

Specified by:
getIndex in class DBItem

getName

public java.lang.String getName()
Specified by:
getName in class DBItem


Copyright © 2001 Universe Dev Team All Rights Reserved.