コード例 #1
0
        public SystemInfo(
            string systemId,
            string missionId,
            ushort vehiclePhysicalIdField,
            uint status,
            bool isOnline,
            CommunicationLink communicationLink,
            ServiceInfoList serviceList,
            PisBaseline pisBaseline,
            PisVersion pisVersion,
            PisMission pisMission,
            bool isPisBaselineUpToDate)
        {
            this._systemId          = systemId;
            this._missionId         = missionId;
            this._vehiclePhysicalId = vehiclePhysicalIdField;
            this._status            = status;
            this._isOnline          = isOnline;
            this._communicationLink = communicationLink;

            this._serviceList = serviceList;
            this._pisBaseline = pisBaseline;
            this._pisVersion  = pisVersion;
            this._pisMission  = pisMission;

            this._isPisBaselineUpToDate = isPisBaselineUpToDate;
        }
コード例 #2
0
ファイル: PisVersion.cs プロジェクト: aioliaaiolos/PISGround
        /// <summary>
        /// Initializes a new instance of the <see cref="PisVersion"/> class with values provider by another instance..
        /// </summary>
        /// <param name="other">The initial values.</param>
        public PisVersion(PisVersion other) : this()
        {
            if (other != null)
            {
                // shallow copy (copy references, since strings are immutable)

                this.VersionPISSoftware = other.VersionPISSoftware;
            }
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SystemInfo"/> class.
        /// </summary>
        public SystemInfo()
        {
            this._systemId          = string.Empty;
            this._missionId         = string.Empty;
            this._vehiclePhysicalId = 0;
            this._status            = 0;
            this._isOnline          = false;
            this._communicationLink = CommunicationLink.NotApplicable;

            this._serviceList = new ServiceInfoList();
            this._pisBaseline = new PisBaseline();
            this._pisVersion  = new PisVersion();
            this._pisMission  = new PisMission();

            this._isPisBaselineUpToDate = false;
        }
コード例 #4
0
ファイル: PisVersion.cs プロジェクト: aioliaaiolos/PISGround
        /// <summary>
        /// Determines whether the specified object is equal to the current
        /// object.
        /// </summary>
        /// <param name="obj">The object to compare with the current
        /// </param>
        /// <returns>
        /// true if the specified object is equal to the current
        /// object; otherwise, false.
        /// </returns>
        public override bool Equals(object obj)
        {
            PisVersion lOther = obj as PisVersion;

            // If parameter is null return false:
            if (lOther == null)
            {
                return(false);
            }

            if (this.VersionPISSoftware != lOther.VersionPISSoftware)
            {
                return(false);
            }

            return(true);
        }
コード例 #5
0
        public SystemInfo(SystemInfo other)
            : this()
        {
            if (other != null)
            {
                // copy string references (strings are immutable)
                this._systemId          = other._systemId;
                this._missionId         = other._missionId;
                this._vehiclePhysicalId = other._vehiclePhysicalId;
                this._status            = other._status;
                this._isOnline          = other._isOnline;
                this._communicationLink = other._communicationLink;

                // shallow copy of list (service infos are immutable)
                this._serviceList = new ServiceInfoList(other._serviceList);

                // deep copy
                this._pisBaseline = new PisBaseline(other._pisBaseline);
                this._pisVersion  = new PisVersion(other._pisVersion);
                this._pisMission  = new PisMission(other._pisMission);

                this._isPisBaselineUpToDate = other._isPisBaselineUpToDate;
            }
        }