X3D Model Documentation: DISEntityPrototypes.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <component level='1name='DIS'/>
  6            <meta name='titlecontent='DISEntityPrototypes.x3d'/>
  7            <meta name='descriptioncontent='Prototype definitions for DISEntityManager and DISEntityTypeMapping.'/>
  8            <meta name='creatorcontent='Alan Hudson'/>
  9            <meta name='translatorcontent='Don Brutzman'/>
 10            <meta name='createdcontent='26 April 2005'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='modifiedcontent='20 October 2019'/>
 13            <meta name=' warning content=' under development. '/>
 14            <meta name='referencecontent='http://www.xj3d.org/extensions/DIS.html'/>
 15            <meta name='referencecontent='http://www.yumetech.com'/>
 16            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/DISEntityPrototypes.x3d'/>
 17            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 18            <meta name='licensecontent='../license.html'/>
 19       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: EntityHolder, EntityManager

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definitions: DISEntityManager, DISEntityTypeMapping
-->
 20       <Scene>
 21            <!-- ============================================================ -->
 22            <WorldInfo title='DISEntityPrototypes.x3d'/>
 23            <ProtoDeclare name='DISEntityManagerappinfo='A DISEntityManager node notifies content when new entities arrive or current entities leave.' documentation='http://www.xj3d.org/extensions/DIS.html#DISEntityManager'>
 24                 <ProtoInterface>
 25                      <field name='siteIDtype='SFInt32value='0accessType='inputOutput'
                     appinfo='[065535]'/>
 26                      <field name='applicationIDtype='SFInt32value='1accessType='inputOutput'
                     appinfo='[065535]'/>
 27                      <field name='entityIDtype='SFInt32value='0accessType='inputOutput'
                     appinfo='[065535] field under consideration'/>
 28                      <field name='addresstype='SFStringvalue='localhostaccessType='inputOutput'/>
 29                      <field name='porttype='SFInt32value='0accessType='inputOutput'
                     appinfo='[065535]'/>
 30                      <field name='mappingtype='MFNodeaccessType='inputOutput'
                     appinfo='[DISEntityTypeMapping]'>
 31                           <!-- default NULL -->
 32                      </field>
 33                      <field name='addedEntitiestype='MFNodeaccessType='outputOnly'
                     appinfo='[EspduTransform]'/>
 34                      <field name='removedEntitiestype='MFNodeaccessType='outputOnly'
                     appinfo='[EspduTransform]'/>
 35                      <field name='metadatatype='SFNodeaccessType='inputOutput'
                     appinfo='[X3DMetadataObject]'>
 36                           <!-- default NULL -->
 37                      </field>
 38                 </ProtoInterface>
 39                 <ProtoBody>
 40                      <!-- X3DChildNode node type -->
 41                      <Group/>
 42                 </ProtoBody>
 43            </ProtoDeclare>
 44            <!-- ============================================================ -->
 45            <ProtoDeclare name='DISEntityTypeMappingappinfo='A DISEntityTypeMapping node provides a mapping from DIS Entity type information to an X3D model. This model is model provides a visual and behavioral representation of the entity for usage in X3D simulations. The mappings are done by selecting the most specific record which fits the entity. A value of 0 is considered a wildcard. All fields after the first zero must be zero as well.' documentation='http://www.xj3d.org/extensions/DIS.html#DISEntityTypeMapping'>
 46                 <ProtoInterface>
 47                      <field name='kindtype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 48                      <field name='domaintype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 49                      <field name='countrytype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 50                      <field name='categorytype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 51                      <field name='subcategorytype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 52                      <field name='specifictype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 53                      <field name='extratype='SFInt32value='0accessType='initializeOnly'
                     appinfo='[0255]'/>
 54                      <field name='identifiertype='SFStringaccessType='initializeOnly'/>
 55                      <field name='metadatatype='SFNodeaccessType='inputOutput'
                     appinfo='[X3DMetadataObject]'>
 56                           <!-- default NULL -->
 57                      </field>
 58                 </ProtoInterface>
 59                 <ProtoBody>
 60                      <!-- X3DInfoNode node type -->
 61                      <MetadataSet name='PlaceholderNode'/>
 62                 </ProtoBody>
 63            </ProtoDeclare>
 64            <!-- ============================================================ -->
 65            <!-- Default content -->
 66            <Viewpoint description='default viewpointposition='0 0 110'/>
 67            <EspduTransform containerField='children'/>
 68            <TransmitterPdu relativeAntennaLocation='0 0 0transmitFrequencyBandwidth='0.0containerField='children'/>
 69 
          <!-- ROUTE information for EntityManager node:  [from addedEntities to EntityHolder.addChildren ] [from removedEntities to EntityHolder.removeChildren ] -->
          <ProtoInstance name='DISEntityManagerDEF='EntityManager'>
 70                 <fieldValue name='addressvalue='224.2.181.145'/>
 71                 <fieldValue name='portvalue='62040'/>
 72                 <fieldValue name='siteIDvalue='0'/>
 73                 <fieldValue name='applicationIDvalue='1'/>
 74                 <fieldValue name='mapping'>
 75                      <!-- n.b. nested prototypes -->
 76                      <ProtoInstance name='DISEntityTypeMapping'>
 77                           <fieldValue name='kindvalue='1'/>
 78                           <fieldValue name='domainvalue='1'/>
 79                           <fieldValue name='countryvalue='225'/>
 80                           <fieldValue name='categoryvalue='1'/>
 81                           <fieldValue name='subcategoryvalue='1'/>
 82                           <fieldValue name='specificvalue='1'/>
 83                           <fieldValue name='identifiervalue='m1a1tank.x3dv'/>
 84                      </ProtoInstance>
 85                      <ProtoInstance name='DISEntityTypeMapping'>
 86                           <fieldValue name='kindvalue='1'/>
 87                           <fieldValue name='domainvalue='3'/>
 88                           <fieldValue name='countryvalue='225'/>
 89                           <fieldValue name='categoryvalue='4'/>
 90                           <fieldValue name='identifiervalue='dog.x3dv'/>
 91                      </ProtoInstance>
 92                      <ProtoInstance name='DISEntityTypeMapping'>
 93                           <fieldValue name='kindvalue='1'/>
 94                           <fieldValue name='domainvalue='1'/>
 95                           <fieldValue name='identifiervalue='land.x3dv'/>
 96                      </ProtoInstance>
 97                      <ProtoInstance name='DISEntityTypeMapping'>
 98                           <fieldValue name='kindvalue='1'/>
 99                           <fieldValue name='domainvalue='1'/>
100                           <fieldValue name='countryvalue='225'/>
101                           <fieldValue name='identifiervalue='USAland.x3dv'/>
102                      </ProtoInstance>
103                      <ProtoInstance name='DISEntityTypeMapping'>
104                           <fieldValue name='kindvalue='1'/>
105                           <fieldValue name='domainvalue='3'/>
106                           <fieldValue name='specificvalue='1'/>
107                           <fieldValue name='identifiervalue='surface.x3dv'/>
108                      </ProtoInstance>
109                 </fieldValue>
110            </ProtoInstance>
111 
          <!-- ROUTE information for EntityHolder node:  [from EntityManager.addedEntities to addChildren ] [from EntityManager.removedEntities to removeChildren ] -->
          <Group DEF='EntityHolder'/>
112            < ROUTE  fromNode='EntityManager' fromField='addedEntities' toNode='EntityHolder' toField='addChildren'/>
113            < ROUTE  fromNode='EntityManager' fromField='removedEntities' toNode='EntityHolder' toField='removeChildren'/>
114       </Scene>
115  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: EntityHolder, EntityManager

Index for Viewpoint node: Viewpoint_1

Index for ProtoDeclare definitions: DISEntityManager, DISEntityTypeMapping
-->
X3D Tooltips element index: component, EspduTransform, field, fieldValue, Group, head, meta, MetadataSet, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, ROUTE, Scene, TransmitterPdu, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table entries with 2 ROUTE connections total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.


ProtoInstance
DISEntityTypeMapping
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
DISEntityTypeMapping
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
DISEntityTypeMapping
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
DISEntityTypeMapping
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


ProtoInstance
DISEntityTypeMapping
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

EntityManager
ProtoInstance
addedEntities
MFNode

ROUTE
event to
(1)
EntityHolder
Group
addChildren
MFNode
EntityManager
ProtoInstance
removedEntities
MFNode

ROUTE
event to
(1)
EntityHolder
Group
removeChildren
MFNode

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/DISEntityPrototypesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/DISEntityPrototypes.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->