Пример #1
0
 /// <summary>
 /// Initializes member variables to their initial values.
 /// </summary>
 /// <remarks>
 /// This function is called by the contructors.
 /// </remarks>
 private void InitializeMembers()
 {
     this.diskVolumeType = DiskVolumeType.Unknown;
     this.localPath      = new ExpressionProperty(this, Constants.DiskVolumeLocalPath);
     this.uncPath        = new ExpressionProperty(this, Constants.DiskVolumeUncPath);
     this.fullSpace      = 0;
     this.allocatedSpace = 0;
     this.reservedSpace  = 0;
     this.speed          = 0;
 }
Пример #2
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Disk Volume</b> object to create the deep copy from.</param>
 private void CopyMembers(DiskVolume old)
 {
     this.diskVolumeType = old.diskVolumeType;
     this.localPath      = new ExpressionProperty(old.localPath);
     this.uncPath        = new ExpressionProperty(old.uncPath);
     this.fullSpace      = old.fullSpace;
     this.allocatedSpace = old.allocatedSpace;
     this.reservedSpace  = old.reservedSpace;
     this.speed          = old.speed;
 }
Пример #3
0
 /// <summary>
 /// Copy constructor that creates a new <b>ExpressionProperty</b> and copies values
 /// from the passed object.
 /// </summary>
 /// <param name="old">The old object to copy values from.</param>
 public ExpressionProperty(ExpressionProperty old)
 {
     CopyMembers(old);
 }
Пример #4
0
 /// <summary>
 /// Copies private members from another object.
 /// </summary>
 /// <param name="old">The object to copy from.</param>
 private void CopyMembers(ExpressionProperty old)
 {
     this.entity = old.entity;
     this.value = old.value;
 }
Пример #5
0
 /// <summary>
 /// Copy constructor that creates a new <b>ExpressionProperty</b> and copies values
 /// from the passed object.
 /// </summary>
 /// <param name="old">The old object to copy values from.</param>
 public ExpressionProperty(ExpressionProperty old)
 {
     CopyMembers(old);
 }
Пример #6
0
 /// <summary>
 /// Copies private members from another object.
 /// </summary>
 /// <param name="old">The object to copy from.</param>
 private void CopyMembers(ExpressionProperty old)
 {
     this.entity = old.entity;
     this.value  = old.value;
 }
Пример #7
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Machine</b> object to create the deep copy from.</param>
 private void CopyMembers(Machine old)
 {
     this.hostName      = old.hostName;
     this.adminUrl      = new ExpressionProperty(old.adminUrl);
     this.deployUncPath = new ExpressionProperty(old.deployUncPath);
 }
Пример #8
0
 /// <summary>
 /// Initializes member variables to their initial values.
 /// </summary>
 /// <remarks>
 /// This function is called by the contructors.
 /// </remarks>
 private void InitializeMembers()
 {
     this.hostName      = new ExpressionProperty(this, Constants.MachineHostName);
     this.adminUrl      = new ExpressionProperty(this, Constants.MachineAdminUrl);
     this.deployUncPath = new ExpressionProperty(this, Constants.MachineDeployUncPath);
 }
Пример #9
0
        /// <summary>
        /// Initializes member variables to their initial values.
        /// </summary>
        /// <remarks>
        /// This function is called by the contructors.
        /// </remarks>
        private void InitializeMembers()
        {
            base.EntityType = EntityType.DiskVolume;
            base.EntityGroup = EntityGroup.Cluster;

            this.diskVolumeType = DiskVolumeType.Unknown;
            this.localPath = new ExpressionProperty(this, Constants.DiskVolumeLocalPath);
            this.uncPath = new ExpressionProperty(this, Constants.DiskVolumeUncPath);
            this.fullSpace = 0;
            this.allocatedSpace = 0;
            this.reservedSpace = 0;
            this.speed = 0;
        }
Пример #10
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Disk Volume</b> object to create the deep copy from.</param>
 private void CopyMembers(DiskVolume old)
 {
     this.diskVolumeType = old.diskVolumeType;
     this.localPath = new ExpressionProperty(old.localPath);
     this.uncPath = new ExpressionProperty(old.uncPath);
     this.fullSpace = old.fullSpace;
     this.allocatedSpace = old.allocatedSpace;
     this.reservedSpace = old.reservedSpace;
     this.speed = old.speed;
 }
Пример #11
0
 /// <summary>
 /// Initializes member variables to their initial values.
 /// </summary>
 /// <remarks>
 /// This function is called by the contructors.
 /// </remarks>
 private void InitializeMembers()
 {
     this.hostName = new ExpressionProperty(this, Constants.MachineHostName);
     this.adminUrl = new ExpressionProperty(this, Constants.MachineAdminUrl);
     this.deployUncPath = new ExpressionProperty(this, Constants.MachineDeployUncPath);
 }
Пример #12
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Machine</b> object to create the deep copy from.</param>
 private void CopyMembers(Machine old)
 {
     this.hostName = old.hostName;
     this.adminUrl = new ExpressionProperty(old.adminUrl);
     this.deployUncPath = new ExpressionProperty(old.deployUncPath);
 }
Пример #13
0
        /// <summary>
        /// Initializes member variables to their initial values.
        /// </summary>
        /// <remarks>
        /// This function is called by the contructors.
        /// </remarks>
        private void InitializeMembers()
        {
            base.EntityType = EntityType.Machine;
            base.EntityGroup = EntityGroup.Cluster | EntityGroup.Jobs;

            this.hostName = new ExpressionProperty(this, Constants.MachineHostName);
            this.adminUrl = new ExpressionProperty(this, Constants.MachineAdminUrl);
            this.deployUncPath = new ExpressionProperty(this, Constants.MachineDeployUncPath);
        }