public class ValidationPdusMakerV1
extends java.lang.Object
This class produces and sends to the net a "standard" stream of Pdus, which may then be captured and saved by an instance of @see edu.nps.moves.dis7.util.playerrecorder.Recorder. After future changes to the DIS library, another run of this class may be done and an instance of @see edu.nps.moves.dis7.util.playerrecorder.LogCompare may be used to detect differences.
The main method here takes 1. a directory name, and 2. a file name, in that order. File type ".dislog" will be appended. If run with an argument count different that 2, the default values of "validatorOut" and "validationLog.txt" are used.
Modifier and Type | Field and Description |
---|---|
static short |
APPLICATIONID_V1 |
static Country |
COUNTRY_V1 |
static java.lang.String |
DEFAULT_DIR |
static java.lang.String |
DEFAULT_NAME |
static byte |
EXERCISEID_V1 |
static short |
SITEID_V1 |
static boolean |
USEABSOLUTETIME_V1 |
Constructor and Description |
---|
ValidationPdusMakerV1() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
int |
run(java.lang.String dir,
java.lang.String fn) |
public static final Country COUNTRY_V1
public static final byte EXERCISEID_V1
public static final short SITEID_V1
public static final short APPLICATIONID_V1
public static final boolean USEABSOLUTETIME_V1
public static final java.lang.String DEFAULT_DIR
public static final java.lang.String DEFAULT_NAME
public int run(java.lang.String dir, java.lang.String fn) throws java.lang.Exception
dir
- directory to save pdu log filefn
- filename of log file, will append an integer to prevent overwritingjava.lang.Exception
- from network write or pdu creationpublic static void main(java.lang.String[] args)