an int field at the class level named ‘index’ that starts = 0 and then is incremented by one each time a new order is constructed
for (int index=0;index<2000; index++ ); }
a private int field for each order instance named ‘id’ which is set equal to the value of ‘index’ at the time of its instantiation
int id;
a constructor that takes as its first argument the number of minutes since the simulation began and as its second the required minutes of processing from when it starts on a machine until it finishes. It must also update index and id values.
public Order(int min, int processing) {}
*Edited: completly unjustified "Intermediate" tag removed
This post has been edited by pbl: 10 December 2009 - 09:53 PM

New Topic/Question
Reply



MultiQuote







|