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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
stationBuildingID
StationID stationBuildingID
projectID
Index projectID
protoObject
ProtoObject protoObject
factory
Factory factory
name
java.lang.String name
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)
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:
- The method *must* be able to be called multiple times at the
same position, because it almost certainly will be. It *must* handle
this situation correctly.
- The method *must not* count on having each position called int
order. Nor must it count on the position numbers being sequential --
if an order is inserted, it may be called with a higher number than
the previous time. Or, if an order is deleted, it may be called with
a number 2 or more below the last one it was called with. It is up to
the method to handle this appropriately.
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.