org.gjt.universe
Class DBItem

java.lang.Object
  |
  +--org.gjt.universe.DBItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Civ, CostBase, FleetBase, GalaxyBase, KnowledgeBase, ModuleBase, ModuleDesignBase, PlanetBase, PlayerBase, ShipBase, ShipDesignBase, StationBase, SystemBase, TechBase, Wormhole

public abstract class DBItem
extends java.lang.Object
implements java.io.Serializable

The base class of all database items. The database items are assumed to have a small set of basic attributes, which are accessible through the interface. For some of the subtypes, the Owner and Location attributes are nonsensical, and standard fail-safe methods have been provided.

See Also:
Serialized Form

Constructor Summary
DBItem()
           
 
Method Summary
abstract  Index getIndex()
          See getID() in the subclasses for a typed version.
 Location getLocation()
           
abstract  java.lang.String getName()
           
 CivID getOwner()
           
abstract  VectorDisplayReturn specificDisplayDebug()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBItem

public DBItem()
Method Detail

specificDisplayDebug

public abstract VectorDisplayReturn specificDisplayDebug()

getIndex

public abstract Index getIndex()
See getID() in the subclasses for a typed version.


getName

public abstract java.lang.String getName()

getOwner

public CivID getOwner()

getLocation

public Location getLocation()
                     throws NotLocatableException
Throws:
NotLocatableException - if the DBItem type is a non-localized phenomenon.


Copyright © 2001 Universe Dev Team All Rights Reserved.