Skip to content
Snippets Groups Projects
Commit 8b147763 authored by chris's avatar chris
Browse files

CANNON PROJECT2

parent 28efa36d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ExampleArtillerySimulation {
public class CannonArtillerySimulation {
// class variables
PduFactory pduFactory = new PduFactory();
......@@ -37,7 +37,7 @@ public class ExampleArtillerySimulation {
* can go here to keep student efforts focused on the runSimulation()
* method.
*/
public ExampleArtillerySimulation() {
public CannonArtillerySimulation() {
// Under consideration. Constructor is not currently needed.
}
......@@ -47,7 +47,7 @@ public class ExampleArtillerySimulation {
* @param address network address to use
* @param port corresponding network port to use
*/
public ExampleArtillerySimulation(String address, int port) {
public CannonArtillerySimulation(String address, int port) {
setNetworkAddress(address);
setNetworkPort(port);
......@@ -175,7 +175,7 @@ public class ExampleArtillerySimulation {
* parameters that are passed from execution environment during invocation
*/
public static void main(String[] args) {
ExampleArtillerySimulation thisProgram = new ExampleArtillerySimulation(); // creates instance
CannonArtillerySimulation thisProgram = new CannonArtillerySimulation(); // creates instance
// initial execution: can handle args array of initialization arguments here
if (args.length == 2) {
......@@ -398,7 +398,7 @@ public class ExampleArtillerySimulation {
} // end of while loop
} catch (Exception ex) // handle any exception that your code might choose to provoke!
{
Logger.getLogger(ExampleArtillerySimulation.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(CannonArtillerySimulation.class.getName()).log(Level.SEVERE, null, ex);
}
}
......
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