Skip to content
Snippets Groups Projects
Commit 17bb80ef authored by Brutzman, Don's avatar Brutzman, Don
Browse files

renames for correctness/clarity

parent 4996cf3c
No related branches found
No related tags found
No related merge requests found
package SimkitOpenDis7Examples.run;
import SimkitOpenDis7Examples.ArrivalProcessOpenDis7;
import SimkitOpenDis7Examples.SimpleServer;
import SimkitOpenDis7Examples.SimpleServerOpenDis7;
import simkit.Schedule;
import simkit.random.RandomVariate;
import simkit.random.RandomVariateFactory;
......@@ -45,8 +45,9 @@ public class RunSimpleServerOpenDis7
* @see RunSimpleServer
* @param args the command line arguments
*/
public static void main(String args[]) {
String rvName = "Uniform";
public static void main(String args[])
{
String rvName = "Uniform"; // TODO is enumeration available?
double lower = 0.9;
double upper = 2.2;
RandomVariate interarrivalTimeGenerator = RandomVariateFactory.getInstance(rvName, lower, upper);
......@@ -58,7 +59,7 @@ public class RunSimpleServerOpenDis7
RandomVariate serviceTimeGenerator = RandomVariateFactory.getInstance(rvName, alpha, beta);
int numServ = 2;
SimpleServer server = new SimpleServer(numServ, serviceTimeGenerator);
SimpleServerOpenDis7 server = new SimpleServer(numServ, serviceTimeGenerator);
arrival.addSimEventListener(server);
SimplePropertyDumper simplePropertyDumper = new SimplePropertyDumper();
......
......@@ -29,10 +29,10 @@ Average delay in queue: 0.4857
*
* @author abuss@nps.edu
*/
public class RunTwoCranesBerthOpenDis7
public class RunTwoCraneBerthsOpenDis7
{
/** Default constructor */
public RunTwoCranesBerthOpenDis7()
public RunTwoCraneBerthsOpenDis7()
{
// default constructor
}
......@@ -40,7 +40,8 @@ public class RunTwoCranesBerthOpenDis7
* Run a simple program and compute statistical measurement of results.
* @param args the command line arguments
*/
public static void main(String[] args) {
public static void main(String[] args)
{
RandomVariate interarrivalTimeGenerator =
RandomVariateFactory.getInstance("Exponential", 0.7);
RandomVariate unloadingTimeGenerator =
......@@ -49,6 +50,7 @@ public class RunTwoCranesBerthOpenDis7
new ShipArrivalProcess(interarrivalTimeGenerator,
unloadingTimeGenerator);
// can start debugging here
TwoCraneBerthsOpenDis7 twoCraneBerthsOpenDis7 = new TwoCraneBerthsOpenDis7();
shipArrivalProcess.addSimEventListener(twoCraneBerthsOpenDis7);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment