Skip to content
Snippets Groups Projects
Commit f62dfc5d authored by brutzman's avatar brutzman
Browse files

add entity import

parent f7995e60
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ import edu.nps.moves.dis7.enumerations.Country;
import edu.nps.moves.dis7.enumerations.EntityKind;
import edu.nps.moves.dis7.enumerations.PlatformDomain;
import edu.nps.moves.dis7.utilities.*;
import edu.nps.moves.dis7.entities.usa.platform.land.M1A2;
/**
* Creates and sends ESPDUs in IEEE binary format. Adapted from OpenDIS library
......@@ -168,7 +169,7 @@ public class EspduSender
// New way using entity jar(s)
espdu.setEntityType(new edu.nps.moves.dis7.entities.usa.platform.land.M1A2());
// or simply use import statement above
espdu.setEntityType(M1A2());
espdu.setEntityType(new M1A2());
// Inspecting an enumeration:
System.out.println("espdu entityType information:");
......
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