org.gjt.universe.scheme001
Class OrderShipBuild_001

java.lang.Object
  |
  +--org.gjt.universe.Order
        |
        +--org.gjt.universe.scheme001.OrderShipBuild_001
All Implemented Interfaces:
java.io.Serializable

class OrderShipBuild_001
extends Order


Field Summary
private  StationID BID
           
private  ShipDesignID DID
           
private  float manufacturingPointsRequired
           
private  float pointsManufactured
           
private  Station_001 station
           
 
Constructor Summary
OrderShipBuild_001(StationID BID, ShipDesignID DID)
           
 
Method Summary
 void atPosition(int i)
          This method handles anything that needs to be done when the order is at a specific position int a queue.
 void delete()
           
 int getEstimatedTimeOfCompletion()
           
 Index getKey()
           
 float getPercentageCompletion()
           
(package private)  ShipDesignID getShipDesign()
           
(package private)  StationID getStation()
           
 boolean process()
          This method processes the appropriate order.
 void submit()
           
 java.lang.String toString()
           
 
Methods inherited from class org.gjt.universe.Order
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BID

private StationID BID

station

private Station_001 station

DID

private ShipDesignID DID

pointsManufactured

private float pointsManufactured

manufacturingPointsRequired

private float manufacturingPointsRequired
Constructor Detail

OrderShipBuild_001

public OrderShipBuild_001(StationID BID,
                          ShipDesignID DID)
Method Detail

getStation

StationID getStation()

getShipDesign

ShipDesignID getShipDesign()

process

public boolean process()
Description copied from class: Order
This method processes the appropriate order. If this method returns a true, then the order is complete and can be removed.

Specified by:
process in class Order

getKey

public Index getKey()
Specified by:
getKey in class Order

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEstimatedTimeOfCompletion

public int getEstimatedTimeOfCompletion()
Specified by:
getEstimatedTimeOfCompletion in class Order

getPercentageCompletion

public float getPercentageCompletion()
Specified by:
getPercentageCompletion in class Order

atPosition

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

submit

public void submit()
Specified by:
submit in class Order

delete

public void delete()
Specified by:
delete in class Order


Copyright © 2001 Universe Dev Team All Rights Reserved.