org.gjt.universe
Class OrderTransfer

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

public class OrderTransfer
extends Order

OrderTransfer.java Created: Wed Jun 14 10:48:03 2000

Version:
$Id: OrderTransfer.java,v 1.3 2001/12/27 23:11:02 brianrater Exp $
Author:
Shalon Wood
See Also:
Serialized Form

Field Summary
(package private)  Factory factory
           
(package private)  java.lang.String name
           
(package private)  Index projectID
           
(package private)  ProtoObject protoObject
           
(package private)  StationID stationBuildingID
           
 
Constructor Summary
OrderTransfer(StationID BID, ModuleDesignID ID, Factory module)
           
OrderTransfer(StationID BID, ShipDesignID ID, Factory module)
           
OrderTransfer(StationID BID, TechID ID, Factory module)
           
 
Method Summary
 void atPosition(int position)
          This method handles anything that needs to be done when the order is at a specific position int a queue.
(package private)  ProtoObject beginProject()
           
 void delete()
           
 int getEstimatedTimeOfCompletion()
           
 Index getKey()
           
 float getPercentageCompletion()
           
 ProtoObject getProject()
           
 boolean process()
          This method processes the appropriate order.
 void submit()
           
 void submit(ProtoObject O)
           
 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

stationBuildingID

StationID stationBuildingID

projectID

Index projectID

protoObject

ProtoObject protoObject

factory

Factory factory

name

java.lang.String name
Constructor Detail

OrderTransfer

public OrderTransfer(StationID BID,
                     ShipDesignID ID,
                     Factory module)

OrderTransfer

public OrderTransfer(StationID BID,
                     ModuleDesignID ID,
                     Factory module)

OrderTransfer

public OrderTransfer(StationID BID,
                     TechID ID,
                     Factory module)
Method Detail

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

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 position)
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:

beginProject

ProtoObject beginProject()

submit

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

submit

public void submit(ProtoObject O)

delete

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

toString

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

getProject

public ProtoObject getProject()


Copyright © 2001 Universe Dev Team All Rights Reserved.