Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • stefan.goericke.gy/NetworkedGraphicsMV3500
  • william.mahan/NetworkedGraphicsMV3500
  • alexander.white/NetworkedGraphicsMV3500
  • kyle.britt/NetworkedGraphicsMV3500
  • christopher.garibay/NetworkedGraphicsMV3500
  • christopher.cannon/NetworkedGraphicsMV3500
  • galoeffe/NetworkedGraphicsMV3500
  • dlcain1/NetworkedGraphicsMV3500
  • jmfurr/NetworkedGraphicsMV3500
  • jrjackso1/NetworkedGraphicsMV3500
  • kjmaroon1/NetworkedGraphicsMV3500
  • cdtacket/NetworkedGraphicsMV3500
12 results
Show changes
Commits on Source (3578)
Showing
with 554 additions and 28 deletions
~$3500NetworkedGraphicsSyllabus2019JulySeptember.doc
/nbproject/build-impl.xml~
/nbproject/genfiles.properties
/nbproject/private/
/assignments/build/
/assignments/dist/
/assignments/nbproject/build-impl.xml~
/assignments/nbproject/genfiles.properties
/assignments/nbproject/private/
/examples/manifest.mf
/examples/build/
/examples/dist/
/examples/nbproject/build-impl.xml~
/examples/nbproject/genfiles.properties
/examples/nbproject/private/
# https://git-scm.com/docs/gitignore
.DS_Store
/specifications/*.SAVEME
/specifications/*.doc
/specifications/*.htm
......@@ -26,4 +15,19 @@
/specifications/SISO*.xml
/specifications/archive
!/specifications/2019-SIW-Presentation-039_CompressedDis.pdf
!/specifications/IeeeDisPduColorFigures.pdf
\ No newline at end of file
!/specifications/IeeeDisPduColorFigures.pdf
/specifications/downloads/*.pdf
build-impl.xml~
private/
manifest.mf
build/
dist/
/viskit/logs
/viskit/pduLog/
/logs/
/pduLog/
viskitProject.xml
/assignments/src/MV3500Cohort2024JulySeptember/projects/ViskitOpenDis7Examples/lib/
/examples/src/ViskitOpenDis7Examples/lib/
File added
File added
File deleted
## MV3500 Internetwork Communications and Simulation
## MV3500 Distributed Simulation Fundamentals Course
This course project contains original assets, presentations, references and source code.
An introduction to distributed communications in simulation applications.
Topics include introduction to the TCP/IP protocol stack,
socket communications including TCP/UDP unicast/multicast and essential protocol design issues.
Follow-on emphasis is Distributed Interactive Simulation (DIS) Protocol application programming,
with side looks at High Level Architecture (HLA). Course activity focuses on creation and testing
of network programming network code and web-browser applications.
Key course sites:
* [MV3500 Course Syllabus](https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/blob/master/MV3500NetworkedGraphicsSyllabus2020JulySeptember.pdf)
* [NPS CLE Sakai site](https://cle.nps.edu/portal/site/54028fd0-8f4b-4a48-bc2c-1381df347fa6) for MV3500 course
This course archive contains a variety of original assets for [assignments](assignments), [examples](examples), [presentations](presentations), and [specifications](specifications).
Additional course pages:
* [MV3500 Course Syllabus](https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/raw/master/MV3500DistributedSimulationSyllabus2023MarchJune.pdf)
* [NPS CLE Sakai site](https://cle.nps.edu/portal/site/6e9fe3d2-37ad-4dd1-83a3-39e8d3089435) for legacy versions of MV3500 course
* [NPS GitLab site: NetworkedGraphicsMV3500](https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500)
* [Wikipedia book: Networked_Modeling_and_Simulation](https://en.wikipedia.org/wiki/Book:Networked_Modeling_and_Simulation)
<!-- * [Wikipedia book: Networked_Modeling_and_Simulation](https://en.wikipedia.org/wiki/Book:Networked_Modeling_and_Simulation) -->
* [opendis7-java Distribution Products](https://savage.nps.edu/opendis7-java)
* [Savage Developers Guide: telnet Network Protocol](https://savage.nps.edu/Savage/developers.html#telnet)
References and Resources:
References and resources:
* [GitLab Flavored Markdown (GFM)](https://docs.gitlab.com/ee/user/markdown.html)
* [Java Archive (.jar)](https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html) for sharable/runnable software libraries
* [Java SE JDK download](http://www.oracle.com/technetwork/java/javase/downloads/index.html) (JDK 8 or 12)
* [Netbeans](http://www.netbeans.org) (version 8.2 or 12), [Using Git Support in NetBeans IDE](https://netbeans.org/kb/docs/ide/git.html)
* [Java SE OpenJDK download](https://openjdk.java.net) (OpenJDK 22) or
[Java SE JDK download](https://www.oracle.com/technetwork/java/javase/downloads/index.html) (OracleJDK 22)
* [Netbeans](http://www.netbeans.org) (version 22), [Using Git Support in NetBeans IDE](https://netbeans.org/kb/docs/ide/git.html)
and [Video of Cloning a Git Repository Using NetBeans IDE](https://netbeans.org/kb/docs/ide/git_nb_ssh_screencast.html)
* [Open-DIS Repository](https://github.com/open-dis) and [Distributed Interactive Simulation: The Missing Handbook](https://github.com/open-dis/DISTutorial/blob/master/README.md)
* [Open-DIS Repository](https://github.com/open-dis) (specifically [opendis7-java](https://github.com/open-dis/opendis7-java)) and [Distributed Interactive Simulation: The Missing Handbook](https://github.com/open-dis/DISTutorial/blob/master/README.md)
* [Savage Developers Guide](https://savage.nps.edu/Savage/developers.html) resources for [Cygwin](https://savage.nps.edu/Savage/developers.html#Cygwin), [DIS](https://savage.nps.edu/Savage/developers.html#DIS) and [telnet](https://savage.nps.edu/Savage/developers.html#telnet)
* [Sequence Diagram](https://en.wikipedia.org/wiki/Sequence_diagram) and [Timing Diagram (UML)](https://en.wikipedia.org/wiki/Timing_diagram_(Unified_Modeling_Language)) on Wikipedia
* [WireShark](https://wireshark.org) and [WireShark Tutorial for Beginners](https://www.youtube.com/watch?v=TkCSr30UojM) video by Anson Alexander
* [X3D-Edit](https://savage.nps.edu/X3D-Edit/#Downloads) as Netbeans Plugin including [DIS PDU Player/Recorder](https://savage.nps.edu/X3D-Edit/images/DisPlayerRecorderPanel.png) and [ESPDU Generator](https://savage.nps.edu/X3D-Edit/images/DisEspduTestPanelDemo.png) (currently requires Netbeans version 8.2)
* [X3D for Web Authors](http://x3dgraphics.com) book, examples and slidesets including [X3D Distributed Interactive Simulation (DIS)](http://x3dgraphics.com/slidesets/X3dForAdvancedModeling/DistributedInteractiveSimulation.pdf)
* [X3D-Edit](https://savage.nps.edu/X3D-Edit) as Netbeans Plugin including [DIS PDU Player/Recorder](https://savage.nps.edu/X3D-Edit/images/DisPlayerRecorderPanel.png) and [ESPDU Generator](https://savage.nps.edu/X3D-Edit/images/DisEspduTestPanelDemo.png) (updated quarterly to use latest NetBeans version)
* [X3D for Web Authors](https://x3dgraphics.com) book, examples and slidesets including [X3D Distributed Interactive Simulation (DIS)](https://x3dgraphics.com/slidesets/X3dForAdvancedModeling/DistributedInteractiveSimulation.pdf)
Contact: Don Brutzman, brutzman@nps.edu
image diff could not be displayed: it is too large. Options to address this: view the blob.
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Networked Graphics MV3500 examples MV3302" default="default" basedir=".">
<description>Builds, tests, and runs the project MV3302.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="MV3302-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
File added
File added
File added
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task
libs.CopyLibs.prop-version=3.0
libs.Simkit.classpath=\
${base}/Simkit/simkit.jar
libs.Simkit.displayName=Simkit
libs.Simkit.javadoc=\
${base}/Simkit/simkit-doc.zip!//
libs.Simkit.src=\
${base}/Simkit/simkit-src.zip!//
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=Networked Graphics MV3500 examples MV3302
application.vendor=dansl
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.modulepath=\
${run.modulepath}
debug.test.classpath=\
${run.test.classpath}
debug.test.modulepath=\
${run.test.modulepath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/Networked_Graphics_MV3500_examples_MV3302.jar
dist.javadoc.dir=${dist.dir}/javadoc
dist.jlink.dir=${dist.dir}/jlink
dist.jlink.output=${dist.jlink.dir}/Networked_Graphics_MV3500_examples_MV3302
endorsed.classpath=
excludes=
includes=**
jar.compress=false
javac.classpath=\
${libs.Simkit.classpath}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.modulepath=
javac.processormodulepath=
javac.processorpath=\
${javac.classpath}
javac.source=17
javac.target=17
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.modulepath=\
${javac.modulepath}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.html5=false
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
# The jlink additional root modules to resolve
jlink.additionalmodules=
# The jlink additional command line parameters
jlink.additionalparam=
jlink.launcher=true
jlink.launcher.name=Networked_Graphics_MV3500_examples_MV3302
main.class=mv3302.run.RunSimpleServer
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=true
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.modulepath=\
${javac.modulepath}
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
run.test.modulepath=\
${javac.test.modulepath}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>Networked Graphics MV3500 examples MV3302</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
<libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
<definitions>.\lib\nblibraries.properties</definitions>
</libraries>
</configuration>
</project>
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Other/File.java to edit this template
*/
/**
*
* @author dansl
*/
public class newJavaFile {
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
// TODO code application logic here
}
}
package mv3302;
import simkit.SimEntityBase;
import simkit.random.RandomVariate;
/**
* A simple (yet useful) simulation component that schedules Arrival events
* using a <code>RandomVariate</code> instance for the times between Arrival
* events.<br>
* The state <code>numberArrivals></code> is incremented at each Arrival event.
*
* @author ahbuss
*/
public class ArrivalProcess extends SimEntityBase {
/**
* Generates interarrival times
*/
private RandomVariate interarrivalTimeGenerator;
/**
* The number of arrivals at any given (sim) time
*/
protected int numberArrivals;
/**
* Zero-argument constructor
*/
public ArrivalProcess() {
}
/**
* Instantiate an Arrival Process with the given interarrivalTimeGenerator
*
* @param interarrivalTimeGenerator Given interarrivalTimeGenerator
*/
public ArrivalProcess(RandomVariate interarrivalTimeGenerator) {
setInterarrivalTimeGenerator(interarrivalTimeGenerator);
}
/**
* Initialize numberArrivals to 0
*/
@Override
public void reset() {
super.reset();
numberArrivals = 0;
}
/**
* Schedule first Arrival event with delay of interarrival time
*/
public void doRun() {
firePropertyChange("numberArrivals", getNumberArrivals());
waitDelay("Arrival", interarrivalTimeGenerator);
}
/**
* Increment numberArrivals<br>
* Schedule next Arrival event with delay of interarrival time
*/
public void doArrival() {
int oldNumberArrivals = getNumberArrivals();
numberArrivals += 1;
firePropertyChange("numberArrivals", oldNumberArrivals, getNumberArrivals());
waitDelay("Arrival", interarrivalTimeGenerator);
}
/**
* @return the interarrivalTimeGenerator
*/
public RandomVariate getInterarrivalTimeGenerator() {
return interarrivalTimeGenerator;
}
/**
* @param interarrivalTimeGenerator the interarrivalTimeGenerator to set
*/
public void setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator) {
this.interarrivalTimeGenerator = interarrivalTimeGenerator;
}
/**
* @return the numberArrivals
*/
public int getNumberArrivals() {
return numberArrivals;
}
}
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package mv3302;
import simkit.Entity;
/**
*Class represents a customer in a simulation. Assigns the customer with a respective
* serviceTime and renegeTime
*/
public class Customer extends Entity {
private double serviceTime;
private double renegeTime;
/**
* constructor method that assigns values of serviceTime and renegeTime to each customer
* @param serviceTime
* @param renegeTime
*/
public Customer(double serviceTime, double renegeTime) {
super("Customer");
this.serviceTime = serviceTime;
this.renegeTime = renegeTime;
}
/**
* @return the serviceTime
*/
public double getServiceTime() {
return serviceTime;
}
/**
* @return the renegeTime
*/
public double getRenegeTime() {
return renegeTime;
}
/**
* returns toString method with serviceTime and renegeTime
*/
@Override
public String toString() {
return String.format("%s %,.4f %,.4f", super.toString(), serviceTime, renegeTime);
}
}
\ No newline at end of file
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package mv3302;
import simkit.Entity;
import simkit.random.RandomVariate;
/**
* CustomerArrivalProcess class acts as the arrival process for the simulation
* extending the ArrivalProcess class. The class instantiates variables for the
* ServiceTime, RenegeTime, InterarrivalTime and numberArrivals
*/
public final class CustomerArrivalProcess extends ArrivalProcess {
private RandomVariate serviceTimeGenerator;
private RandomVariate renegeTimeGenerator;
private RandomVariate interarrivalTimeGenerator;
private int numberofArrivals;
/**
* Zero-argument constructor
*/
public CustomerArrivalProcess() {
super();
}
/**
* Constructor method that instantiates renege times and service times for
* each customer arrival
* @param renegeTimeGenerator
* @param interarrivalTimeGenerator
* @param serviceTimeGenerator
*/
public CustomerArrivalProcess(RandomVariate renegeTimeGenerator, RandomVariate interarrivalTimeGenerator, RandomVariate serviceTimeGenerator) {
super(interarrivalTimeGenerator);
setServiceTimeGenerator(serviceTimeGenerator);
setRenegeTimeGenerator(renegeTimeGenerator);
}
/**
* Generates a customers serviceTime, renegeTime, iterates the total number
* of arrivals and schedules the customers arrival event
*/
@Override
public void doArrival() {
super.doArrival();
double serviceTime = serviceTimeGenerator.generate();
double renegeTime = renegeTimeGenerator.generate();
Customer customer = new Customer(serviceTime, renegeTime);
waitDelay("Arrival", 0.0, customer);
numberofArrivals += 1;
}
/**
* Does nothing, since this is only to be "heard"
* @param customer
*/
public void doArrival(Customer customer) {
}
/**
* @return the serviceTimeGenerator
*/
public RandomVariate getServiceTimeGenerator() {
return serviceTimeGenerator;
}
/**
* @param serviceTimeGenerator the serviceTimeGenerator to set
*/
public void setServiceTimeGenerator(RandomVariate serviceTimeGenerator) {
this.serviceTimeGenerator = serviceTimeGenerator;
}
/**
* @return the renegeTimeGenerator
*/
public RandomVariate getRenegeTimeGenerator() {
return renegeTimeGenerator;
}
/**
* @param renegeTimeGenerator the renegeTimeGenerator to set
*/
public void setRenegeTimeGenerator(RandomVariate renegeTimeGenerator) {
this.renegeTimeGenerator = renegeTimeGenerator;
}
/**
* @return the numberArrivals
*/
@Override
public int getNumberArrivals() {
return numberofArrivals;
}
}
package mv3302;
import simkit.Entity;
import simkit.random.RandomVariate;
/**
* Instantiates an <code>Entity</code> at each Arrival event and schedules an
* Arrival event with that as its argument
*
* @author ahbuss
*/
public class EntityArrivalProcess extends ArrivalProcess {
/**
* Zero-argument constructor
*/
public EntityArrivalProcess() {
super();
}
/**
* Instantiate an <code>EntityArrivalProcess</code> with the given
* <code>interarrivalTimeGenerator</code>
*
* @param interarrivalTimeGenerator Given
* <code>interarrivalTimeGenerator</code>
*/
public EntityArrivalProcess(RandomVariate interarrivalTimeGenerator) {
super(interarrivalTimeGenerator);
}
/**
* Schedule Arrival(Entity) with a new instance of <code>Entity</code><br>
*/
@Override
public void doArrival() {
super.doArrival();
var entity = new Entity();
waitDelay("Arrival", 0.0, entity);
}
/**
* Does nothing, since this is only to be "heard"
*
* @param entity Given Entity
*/
public void doArrival(Entity entity) {
}
}