Remove command-line option
This commit is contained in:
parent
6d480448eb
commit
bed69283e3
@ -3,7 +3,6 @@
|
|||||||
// We make no guarantees that this code is fit for any purpose.
|
// We make no guarantees that this code is fit for any purpose.
|
||||||
// Visit http://OnJava8.com for more book information.
|
// Visit http://OnJava8.com for more book information.
|
||||||
// Configure and execute the greenhouse system
|
// Configure and execute the greenhouse system
|
||||||
// {java GreenhouseController 5000}
|
|
||||||
import innerclasses.controller.*;
|
import innerclasses.controller.*;
|
||||||
|
|
||||||
public class GreenhouseController {
|
public class GreenhouseController {
|
||||||
@ -21,10 +20,8 @@ public class GreenhouseController {
|
|||||||
gc.new ThermostatDay(1400)
|
gc.new ThermostatDay(1400)
|
||||||
};
|
};
|
||||||
gc.addEvent(gc.new Restart(2000, eventList));
|
gc.addEvent(gc.new Restart(2000, eventList));
|
||||||
if(args.length == 1)
|
gc.addEvent(
|
||||||
gc.addEvent(
|
new GreenhouseControls.Terminate(5000));
|
||||||
new GreenhouseControls.Terminate(
|
|
||||||
Integer.valueOf(args[0])));
|
|
||||||
gc.run();
|
gc.run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user