import SimKit.*;
class SKTest extends Simulation {
private TestLP tLP1, tLP2;
public static void main (String[] argv) {
Arguments args = new Arguments(argv);
args.add("Debug");
new SKTest(args).run();
}
public SKTest(Arguments args) {
super(args);
System.out.println("SKTest constructor, args = \n" + args);
}
public void initialize () {
tLP1 = new TestLP(8.0); tLP2 = new TestLP(10.0);
setEndTime(30);
System.out.println("SKTest initialize(), currTime = " + currTime());
}
public void terminate () {
System.out.println("SKTest terminate(), currTime = " + currTime());
Thread t = Thread.currentThread();
System.out.println("SKTest terminate, currThread = " + t);
}
} // end SKTest
Previous slide | Next slide | Back to first slide | View graphic version |