Esempio n. 1
0
        public static WISE_RESULT Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return CreateErrorCode(WISEError.WISE_W_NOT_INITIATED);
            }

            if (!IsInitialized())
            {
                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("Active", Attributes.Active);
                    _nameIdIndex.Add("Airline", Attributes.Airline);
                    _nameIdIndex.Add("AltitudeLockResumeAltitude", Attributes.AltitudeLockResumeAltitude);
                    _nameIdIndex.Add("AltitudeLockStatus", Attributes.AltitudeLockStatus);
                    _nameIdIndex.Add("AltitudeRequested", Attributes.AltitudeRequested);
                    _nameIdIndex.Add("AngleSpeed", Attributes.AngleSpeed);
                    _nameIdIndex.Add("ApproachDist", Attributes.ApproachDist);
                    _nameIdIndex.Add("ApproachSpeed", Attributes.ApproachSpeed);
                    _nameIdIndex.Add("AssignedIAS", Attributes.AssignedIAS);
                    _nameIdIndex.Add("AssignedSpeedMach", Attributes.AssignedSpeedMach);
                    _nameIdIndex.Add("AsternLineCurrDist", Attributes.AsternLineCurrDist);
                    _nameIdIndex.Add("AsternLineMaster", Attributes.AsternLineMaster);
                    _nameIdIndex.Add("AsternLineReqDist", Attributes.AsternLineReqDist);
                    _nameIdIndex.Add("AsternLineSlave", Attributes.AsternLineSlave);
                    _nameIdIndex.Add("AviantionRules", Attributes.AviantionRules);
                    _nameIdIndex.Add("ClearedToContinue", Attributes.ClearedToContinue);
                    _nameIdIndex.Add("ClimbPerformance", Attributes.ClimbPerformance);
                    _nameIdIndex.Add("ConflictAlert", Attributes.ConflictAlert);
                    _nameIdIndex.Add("Conflicts", Attributes.Conflicts);
                    _nameIdIndex.Add("Controller", Attributes.Controller);
                    _nameIdIndex.Add("CorrelatedCallsign", Attributes.CorrelatedCallsign);
                    _nameIdIndex.Add("CurrentGroundSpeed", Attributes.CurrentGroundSpeed);
                    _nameIdIndex.Add("CurrentOperation", Attributes.CurrentOperation);
                    _nameIdIndex.Add("Departure", Attributes.Departure);
                    _nameIdIndex.Add("DescentPerformance", Attributes.DescentPerformance);
                    _nameIdIndex.Add("DescentSpeedRatio", Attributes.DescentSpeedRatio);
                    _nameIdIndex.Add("DestFix", Attributes.DestFix);
                    _nameIdIndex.Add("Destination", Attributes.Destination);
                    _nameIdIndex.Add("DestinationETA", Attributes.DestinationETA);
                    _nameIdIndex.Add("DismissRequested", Attributes.DismissRequested);
                    _nameIdIndex.Add("EngineName", Attributes.EngineName);
                    _nameIdIndex.Add("EngineOn", Attributes.EngineOn);
                    _nameIdIndex.Add("EntityMode", Attributes.EntityMode);
                    _nameIdIndex.Add("EntityModeArgs", Attributes.EntityModeArgs);
                    _nameIdIndex.Add("EntityType", Attributes.EntityType);
                    _nameIdIndex.Add("Extension", Attributes.Extension);
                    _nameIdIndex.Add("FinalApproachDist", Attributes.FinalApproachDist);
                    _nameIdIndex.Add("FinalApproachSpeed", Attributes.FinalApproachSpeed);
                    _nameIdIndex.Add("FixedTurnRadius", Attributes.FixedTurnRadius);
                    _nameIdIndex.Add("Formation", Attributes.Formation);
                    _nameIdIndex.Add("FormationMaster", Attributes.FormationMaster);
                    _nameIdIndex.Add("FormationPosition", Attributes.FormationPosition);
                    _nameIdIndex.Add("Frequency", Attributes.Frequency);
                    _nameIdIndex.Add("GPID", Attributes.GPID);
                    _nameIdIndex.Add("GroundAcceleration", Attributes.GroundAcceleration);
                    _nameIdIndex.Add("GroundRetardation", Attributes.GroundRetardation);
                    _nameIdIndex.Add("GroundSpeed", Attributes.GroundSpeed);
                    _nameIdIndex.Add("HeadingRequested", Attributes.HeadingRequested);
                    _nameIdIndex.Add("Health", Attributes.Health);
                    _nameIdIndex.Add("HorizontalAcceleration", Attributes.HorizontalAcceleration);
                    _nameIdIndex.Add("HorizontalSpeed", Attributes.HorizontalSpeed);
                    _nameIdIndex.Add("ICAOCallsign", Attributes.ICAOCallsign);
                    _nameIdIndex.Add("ICAOTelephoneCallsign", Attributes.ICAOTelephoneCallsign);
                    _nameIdIndex.Add("Id", Attributes.Id);
                    _nameIdIndex.Add("Infotext", Attributes.Infotext);
                    _nameIdIndex.Add("IsGarbage", Attributes.IsGarbage);
                    _nameIdIndex.Add("IsHelicopter", Attributes.IsHelicopter);
                    _nameIdIndex.Add("IsOnGround", Attributes.IsOnGround);
                    _nameIdIndex.Add("LandingDist", Attributes.LandingDist);
                    _nameIdIndex.Add("LandingGearDist", Attributes.LandingGearDist);
                    _nameIdIndex.Add("LandingGearName", Attributes.LandingGearName);
                    _nameIdIndex.Add("LandingGearOut", Attributes.LandingGearOut);
                    _nameIdIndex.Add("LandingLightName", Attributes.LandingLightName);
                    _nameIdIndex.Add("LandingLightsOn", Attributes.LandingLightsOn);
                    _nameIdIndex.Add("LandingSpeed", Attributes.LandingSpeed);
                    _nameIdIndex.Add("LandingType", Attributes.LandingType);
                    _nameIdIndex.Add("LayerDependentParameters", Attributes.LayerDependentParameters);
                    _nameIdIndex.Add("Length", Attributes.Length);
                    _nameIdIndex.Add("MapSymbol", Attributes.MapSymbol);
                    _nameIdIndex.Add("March", Attributes.March);
                    _nameIdIndex.Add("MaxAcceleration", Attributes.MaxAcceleration);
                    _nameIdIndex.Add("MaxAltitude", Attributes.MaxAltitude);
                    _nameIdIndex.Add("MaxBankAngle", Attributes.MaxBankAngle);
                    _nameIdIndex.Add("MaxClimbSpeed", Attributes.MaxClimbSpeed);
                    _nameIdIndex.Add("MaxDeceleration", Attributes.MaxDeceleration);
                    _nameIdIndex.Add("MaxDescentSpeed", Attributes.MaxDescentSpeed);
                    _nameIdIndex.Add("MaxHorizontalSpeed", Attributes.MaxHorizontalSpeed);
                    _nameIdIndex.Add("MaxTurnSpeed", Attributes.MaxTurnSpeed);
                    _nameIdIndex.Add("MilitaryAffiliation", Attributes.MilitaryAffiliation);
                    _nameIdIndex.Add("MinimumApproachSpeed", Attributes.MinimumApproachSpeed);
                    _nameIdIndex.Add("MinimumCleanSpeed", Attributes.MinimumCleanSpeed);
                    _nameIdIndex.Add("MissedRoute", Attributes.MissedRoute);
                    _nameIdIndex.Add("ModeC", Attributes.ModeC);
                    _nameIdIndex.Add("Model3D", Attributes.Model3D);
                    _nameIdIndex.Add("Mover", Attributes.Mover);
                    _nameIdIndex.Add("NPBreakType", Attributes.NPBreakType);
                    _nameIdIndex.Add("NPClose", Attributes.NPClose);
                    _nameIdIndex.Add("Name", Attributes.Name);
                    _nameIdIndex.Add("NavLightName", Attributes.NavLightName);
                    _nameIdIndex.Add("NavigationalLightsOn", Attributes.NavigationalLightsOn);
                    _nameIdIndex.Add("NormalClimbSpeed", Attributes.NormalClimbSpeed);
                    _nameIdIndex.Add("NormalDescentSpeed", Attributes.NormalDescentSpeed);
                    _nameIdIndex.Add("OrbitStatus", Attributes.OrbitStatus);
                    _nameIdIndex.Add("Orientation", Attributes.Orientation);
                    _nameIdIndex.Add("OverridedClimbSpeed", Attributes.OverridedClimbSpeed);
                    _nameIdIndex.Add("OverridedClimbSpeedFactor", Attributes.OverridedClimbSpeedFactor);
                    _nameIdIndex.Add("OverridedDescentSpeed", Attributes.OverridedDescentSpeed);
                    _nameIdIndex.Add("OverridedDescentSpeedFactor", Attributes.OverridedDescentSpeedFactor);
                    _nameIdIndex.Add("Overshoot", Attributes.Overshoot);
                    _nameIdIndex.Add("Parent", Attributes.Parent);
                    _nameIdIndex.Add("PlaneIndication", Attributes.PlaneIndication);
                    _nameIdIndex.Add("Position", Attributes.Position);
                    _nameIdIndex.Add("PositionKind", Attributes.PositionKind);
                    _nameIdIndex.Add("PresentedOrientation", Attributes.PresentedOrientation);
                    _nameIdIndex.Add("PresentedPosition", Attributes.PresentedPosition);
                    _nameIdIndex.Add("PresentedVelocity", Attributes.PresentedVelocity);
                    _nameIdIndex.Add("QNH", Attributes.QNH);
                    _nameIdIndex.Add("RadarCrossSection", Attributes.RadarCrossSection);
                    _nameIdIndex.Add("RadioCallname", Attributes.RadioCallname);
                    _nameIdIndex.Add("Radius", Attributes.Radius);
                    _nameIdIndex.Add("ReferencePoint", Attributes.ReferencePoint);
                    _nameIdIndex.Add("ResetSpinn", Attributes.ResetSpinn);
                    _nameIdIndex.Add("Reversed", Attributes.Reversed);
                    _nameIdIndex.Add("RolePilot", Attributes.RolePilot);
                    _nameIdIndex.Add("RoleTrainee", Attributes.RoleTrainee);
                    _nameIdIndex.Add("RouteName", Attributes.RouteName);
                    _nameIdIndex.Add("Routes", Attributes.Routes);
                    _nameIdIndex.Add("Runway", Attributes.Runway);
                    _nameIdIndex.Add("SensorVisible", Attributes.SensorVisible);
                    _nameIdIndex.Add("Setting_Bottom_Layer_Climb_Speed", Attributes.Setting_Bottom_Layer_Climb_Speed);
                    _nameIdIndex.Add("Setting_Lift_Off_Height", Attributes.Setting_Lift_Off_Height);
                    _nameIdIndex.Add("Setting_Lift_Off_Speed", Attributes.Setting_Lift_Off_Speed);
                    _nameIdIndex.Add("Setting_MaxBankingAngle", Attributes.Setting_MaxBankingAngle);
                    _nameIdIndex.Add("Setting_Max_ClimbSpeed", Attributes.Setting_Max_ClimbSpeed);
                    _nameIdIndex.Add("Setting_Max_DescentSpeed", Attributes.Setting_Max_DescentSpeed);
                    _nameIdIndex.Add("Setting_NormalBankingAngle", Attributes.Setting_NormalBankingAngle);
                    _nameIdIndex.Add("Setting_Normal_ClimbSpeed", Attributes.Setting_Normal_ClimbSpeed);
                    _nameIdIndex.Add("Setting_Normal_DescentSpeed", Attributes.Setting_Normal_DescentSpeed);
                    _nameIdIndex.Add("Setting_Normal_Speed_Ground", Attributes.Setting_Normal_Speed_Ground);
                    _nameIdIndex.Add("ShadowName", Attributes.ShadowName);
                    _nameIdIndex.Add("SlaveIndex", Attributes.SlaveIndex);
                    _nameIdIndex.Add("SlowDownRetardation", Attributes.SlowDownRetardation);
                    _nameIdIndex.Add("SlowDownSpeed", Attributes.SlowDownSpeed);
                    _nameIdIndex.Add("Smoke", Attributes.Smoke);
                    _nameIdIndex.Add("SpeedPerformance", Attributes.SpeedPerformance);
                    _nameIdIndex.Add("SpinAngleSpeed", Attributes.SpinAngleSpeed);
                    _nameIdIndex.Add("SquawkActive", Attributes.SquawkActive);
                    _nameIdIndex.Add("TakeoffSpeed", Attributes.TakeoffSpeed);
                    _nameIdIndex.Add("TargetAltitude", Attributes.TargetAltitude);
                    _nameIdIndex.Add("TargetClimbSpeed", Attributes.TargetClimbSpeed);
                    _nameIdIndex.Add("TargetDescendSpeed", Attributes.TargetDescendSpeed);
                    _nameIdIndex.Add("TargetHeading", Attributes.TargetHeading);
                    _nameIdIndex.Add("TargetHorizontalSpeed", Attributes.TargetHorizontalSpeed);
                    _nameIdIndex.Add("TargetHorizontalSpeedType", Attributes.TargetHorizontalSpeedType);
                    _nameIdIndex.Add("Template3DModels", Attributes.Template3DModels);
                    _nameIdIndex.Add("TemplatedObject", Attributes.TemplatedObject);
                    _nameIdIndex.Add("TemporaryMaxSpeed", Attributes.TemporaryMaxSpeed);
                    _nameIdIndex.Add("TouchAndGo", Attributes.TouchAndGo);
                    _nameIdIndex.Add("TransponderCode", Attributes.TransponderCode);
                    _nameIdIndex.Add("TransponderState", Attributes.TransponderState);
                    _nameIdIndex.Add("TurbulenceCategory", Attributes.TurbulenceCategory);
                    _nameIdIndex.Add("TurnDirection", Attributes.TurnDirection);
                    _nameIdIndex.Add("TurnRadius", Attributes.TurnRadius);
                    _nameIdIndex.Add("TypeDescription", Attributes.TypeDescription);
                    _nameIdIndex.Add("Unit", Attributes.Unit);
                    _nameIdIndex.Add("UpdateRate", Attributes.UpdateRate);
                    _nameIdIndex.Add("UseAnticollision", Attributes.UseAnticollision);
                    _nameIdIndex.Add("UseCorrelated", Attributes.UseCorrelated);
                    _nameIdIndex.Add("VerticalAcceleration", Attributes.VerticalAcceleration);
                    _nameIdIndex.Add("VerticalSpeed", Attributes.VerticalSpeed);
                    _nameIdIndex.Add("VirtualPilot", Attributes.VirtualPilot);
                    _nameIdIndex.Add("timestamp", Attributes.timestamp);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return WISEError.WISE_OK;
        }
Esempio n. 2
0
        public static bool Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return false;
            }

            if (!IsInitialized())
            {
                // Generate the class handle
                uint classId = 0;

                cache.AddString(ClassName, ref classId);

                _classHandle = classId;
                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("Command", Attributes.Command);
                    _nameIdIndex.Add("ExternalId", Attributes.ExternalId);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return true;
        }
Esempio n. 3
0
        public static WISE_RESULT Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return CreateErrorCode(WISEError.WISE_W_NOT_INITIATED);
            }

            if (!IsInitialized())
            {
                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("Description", Attributes.Description);
                    _nameIdIndex.Add("EquipmentType", Attributes.EquipmentType);
                    _nameIdIndex.Add("Name", Attributes.Name);
                    _nameIdIndex.Add("Parent", Attributes.Parent);
                    _nameIdIndex.Add("RelativeLocation", Attributes.RelativeLocation);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return WISEError.WISE_OK;
        }
Esempio n. 4
0
        public static bool Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return false;
            }

            if (!IsInitialized())
            {
                // Generate the class handle
                uint classId = 0;

                cache.AddString(ClassName, ref classId);

                _classHandle = classId;

                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("Description", Attributes.Description);
                    _nameIdIndex.Add("EquipmentType", Attributes.EquipmentType);
                    _nameIdIndex.Add("Name", Attributes.Name);
                    _nameIdIndex.Add("Parent", Attributes.Parent);
                    _nameIdIndex.Add("RelativeLocation", Attributes.RelativeLocation);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return true;
        }
Esempio n. 5
0
        public static WISE_RESULT Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return CreateErrorCode(WISEError.WISE_W_NOT_INITIATED);
            }

            if (!IsInitialized())
            {
                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("CurrentGroundSpeed", Attributes.CurrentGroundSpeed);
                    _nameIdIndex.Add("EntityType", Attributes.EntityType);
                    _nameIdIndex.Add("FixedTurnRadius", Attributes.FixedTurnRadius);
                    _nameIdIndex.Add("Formation", Attributes.Formation);
                    _nameIdIndex.Add("FormationMaster", Attributes.FormationMaster);
                    _nameIdIndex.Add("FormationPosition", Attributes.FormationPosition);
                    _nameIdIndex.Add("GroundSpeed", Attributes.GroundSpeed);
                    _nameIdIndex.Add("Health", Attributes.Health);
                    _nameIdIndex.Add("HorizontalAcceleration", Attributes.HorizontalAcceleration);
                    _nameIdIndex.Add("HorizontalSpeed", Attributes.HorizontalSpeed);
                    _nameIdIndex.Add("IsOnGround", Attributes.IsOnGround);
                    _nameIdIndex.Add("Length", Attributes.Length);
                    _nameIdIndex.Add("MaxAcceleration", Attributes.MaxAcceleration);
                    _nameIdIndex.Add("MaxDeceleration", Attributes.MaxDeceleration);
                    _nameIdIndex.Add("MaxHorizontalSpeed", Attributes.MaxHorizontalSpeed);
                    _nameIdIndex.Add("MaxTurnSpeed", Attributes.MaxTurnSpeed);
                    _nameIdIndex.Add("Model3D", Attributes.Model3D);
                    _nameIdIndex.Add("Mover", Attributes.Mover);
                    _nameIdIndex.Add("Name", Attributes.Name);
                    _nameIdIndex.Add("Orientation", Attributes.Orientation);
                    _nameIdIndex.Add("Position", Attributes.Position);
                    _nameIdIndex.Add("PresentedOrientation", Attributes.PresentedOrientation);
                    _nameIdIndex.Add("PresentedPosition", Attributes.PresentedPosition);
                    _nameIdIndex.Add("PresentedVelocity", Attributes.PresentedVelocity);
                    _nameIdIndex.Add("RadarCrossSection", Attributes.RadarCrossSection);
                    _nameIdIndex.Add("Radius", Attributes.Radius);
                    _nameIdIndex.Add("SensorVisible", Attributes.SensorVisible);
                    _nameIdIndex.Add("TargetHeading", Attributes.TargetHeading);
                    _nameIdIndex.Add("TargetHorizontalSpeed", Attributes.TargetHorizontalSpeed);
                    _nameIdIndex.Add("Template3DModels", Attributes.Template3DModels);
                    _nameIdIndex.Add("TemplatedObject", Attributes.TemplatedObject);
                    _nameIdIndex.Add("TransponderCode", Attributes.TransponderCode);
                    _nameIdIndex.Add("TurnDirection", Attributes.TurnDirection);
                    _nameIdIndex.Add("TurnRadius", Attributes.TurnRadius);
                    _nameIdIndex.Add("UpdateRate", Attributes.UpdateRate);
                    _nameIdIndex.Add("UseAnticollision", Attributes.UseAnticollision);
                    _nameIdIndex.Add("VerticalAcceleration", Attributes.VerticalAcceleration);
                    _nameIdIndex.Add("VerticalSpeed", Attributes.VerticalSpeed);
                    _nameIdIndex.Add("timestamp", Attributes.timestamp);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return WISEError.WISE_OK;
        }
Esempio n. 6
0
        public static WISE_RESULT Initialize(INETWISEStringCache cache)
        {
            if (cache == null)
            {
                return CreateErrorCode(WISEError.WISE_W_NOT_INITIATED);
            }

            if (!IsInitialized())
            {
                lock (_nameIdIndex)
                {
                    _nameIdIndex.Add("Command", Attributes.Command);
                    _nameIdIndex.Add("ExternalId", Attributes.ExternalId);

                    lock (_idHandleIndex)
                    {
                        if (_nameIdIndex.Count > 0 && _idHandleIndex.Count == 0)
                        {
                            foreach (KeyValuePair<string, Attributes> item in _nameIdIndex.FirstToSecond)
                            {
                                uint attrId = 0;
                                cache.AddString(item.Key, ref attrId);
                                _idHandleIndex.Add(item.Value, new AttributeHandle(attrId));
                            }
                        }
                    }
                }
            }
            return WISEError.WISE_OK;
        }