System.out.println("range: "+range+" hops from our Network DMZ!");
if(range<5){// Range 5
if(!fireBool){
sendSinglePdu(MalPacketDetectedComment);
}
fireBool=true;
System.out.println("Entity#"+firePdu.getFiringEntityID().getEntityID()+" is firing "+firePdu.getDescriptor().getMunitionType().getDomain()+"."+firePdu.getDescriptor().getMunitionType().getCountry()+"."+firePdu.getDescriptor().getMunitionType().getCategory()+"."+firePdu.getDescriptor().getMunitionType().getSubCategory()+"."+firePdu.getDescriptor().getMunitionType().getSpecific()+"."+" at Entity#"+firePdu.getTargetEntityID().getEntityID());
System.out.println("range: "+range+" hops from our Network DMZ!");
simulationComplete=true;
if(range<5){// Range 5
if(!fireBool){
sendSinglePdu(MalPacketDetectedComment);
}
fireBool=true;
System.out.println("Entity#"+firePdu.getFiringEntityID().getEntityID()+" is firing "+firePdu.getDescriptor().getMunitionType().getDomain()+"."+firePdu.getDescriptor().getMunitionType().getCountry()+"."+firePdu.getDescriptor().getMunitionType().getCategory()+"."+firePdu.getDescriptor().getMunitionType().getSubCategory()+"."+firePdu.getDescriptor().getMunitionType().getSpecific()+"."+" at Entity#"+firePdu.getTargetEntityID().getEntityID());
@@ -407,82 +397,91 @@ public class ExampleSimulationProgram
...
@@ -407,82 +397,91 @@ public class ExampleSimulationProgram
/**
/**
* Send Comment PDU
* Send Comment PDU
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
*
* @param commentType enumeration value describing purpose of the narrative comment
* @see
* @param comments String array of narrative comments
* Send EntityState, Fire, Comment PDUs that got updated for this loop, reflecting state of current simulation timestep.
* Send EntityState, Fire, Comment PDUs that got updated for this loop,
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
* reflecting state of current simulation timestep.
* Main method is first executed when a program instance is loaded.
* Main method is first executed when a program instance is loaded.
* @see <a href="https://docs.oracle.com/javase/tutorial/getStarted/application/index.html">Java Tutorials: A Closer Look at the "Hello World!" Application</a>
*
* @param args command-line arguments are an array of optional String parameters that are passed from execution environment during invocation