org.gjt.universe
Class Order

java.lang.Object
  |
  +--org.gjt.universe.Order
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OrderColonize, OrderEngineering_001, OrderMove, OrderResearch_001, OrderShipBuild_001, OrderStation1_001, OrderStation2_001, OrderStationBuild_001, OrderTransfer, OrderTransitWormhole

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

This is the base class for all Order objects.

See Also:
Serialized Form

Constructor Summary
Order()
           
 
Method Summary
abstract  void atPosition(int i)
          This method handles anything that needs to be done when the order is at a specific position int a queue.
abstract  void delete()
           
abstract  int getEstimatedTimeOfCompletion()
           
abstract  Index getKey()
           
 java.lang.String getName()
           
abstract  float getPercentageCompletion()
           
abstract  boolean process()
          This method processes the appropriate order.
abstract  void submit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Order

public Order()
Method Detail

process

public abstract boolean process()
This method processes the appropriate order. If this method returns a true, then the order is complete and can be removed.


getKey

public abstract Index getKey()

getEstimatedTimeOfCompletion

public abstract int getEstimatedTimeOfCompletion()

getPercentageCompletion

public abstract float getPercentageCompletion()

atPosition

public abstract void atPosition(int i)
This method handles anything that needs to be done when the order is at a specific position int a queue. Notes:

submit

public abstract void submit()

delete

public abstract void delete()

getName

public java.lang.String getName()


Copyright © 2001 Universe Dev Team All Rights Reserved.