* Entity classes are found in several jars included in this project. They are typically separated into countries and/or platforms. Assuming one or more are in the application
* <p>Entity classes are found in several jars included in this project. They are typically separated into countries and/or platforms. Assuming one or more are in the application
* classpath, individual entity types may be used/instantiated in either of 2 ways:<p>
* classpath, individual entity types may be used/instantiated in either of 2 ways:</p>
*
*
* 1. By name, including package. For example, you may include the following statements in your application:<pre>
* <p>1. By name, including package. For example, you may include the following statements in your application:</p>
* 2. By <b>SISO uid</b>. Included in the <u>edu.nps.moves.dis.entities</u> package is the EntityTypeFactory class. It has a static method with a makeEntity method. You would do:<pre>
* <p>2. By <b>SISO uid</b>. Included in the <u>edu.nps.moves.dis.entities</u> package is the EntityTypeFactory class.
* EntityType et = EntityTypeFactory.makeEntity(28585);</pre>
* EntityType et = EntityTypeFactory.makeEntity(28585);</pre>
*
*
* Importantly, if you pass a legal uid to the makeEntity method, but do not have the appropriate entity jar in your classpath, the method returns null,
* <p>Importantly, if you pass a legal uid to the makeEntity method, but do not have the appropriate entity jar in your classpath, the method returns null,
* and displays a message on System.err.<p>
* and displays a message on System.err.</p>
*
*
* The code in this class illustrates EntityType use.
* The code in this class illustrates EntityStatePDU and EntityType use.
*
*
*/
*/
publicclassEntityUse
publicclassEntityUse
{
{
/**
/**
* Using two methods, create and send an EntityStatePDU, describing an AD44 Shenandoah destroyer tender, uid 11963.
* Using two methods, create and send an EntityStatePDU, describing an AD44 Shenandoah destroyer tender, uid 11963.