コード例 #1
0
 public FederateSom() : base()
 {
     // Construct SOM
     ShipOC = new stms.Som.CShipOC();
     AddToObjectModel(ShipOC);
     StationOC = new stms.Som.CStationOC();
     AddToObjectModel(StationOC);
     RadioMessageIC = new stms.Som.CRadioMessageIC();
     AddToObjectModel(RadioMessageIC);
     // Add Dimensions
     AreaOfResponsibility = new HlaDimension("AreaOfResponsibility");
     AddToObjectModel(AreaOfResponsibility);
     CommunicationSpace = new stms.Som.CCommunicationSpace();
     AddToObjectModel(CommunicationSpace);
 }
コード例 #2
0
 /// <summary>
 /// Adds a dimension to object model.
 /// </summary>
 /// <param name="dimension"></param>
 public void AddToObjectModel(HlaDimension dimension)
 {
     Dimensions.Add(dimension);
 }