Exemple #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;
 }
Exemple #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;
 }
 /// <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);
 }
 /// <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;
 }
 /// <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);
 }
 /// <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;
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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;
        }
Exemple #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;
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
        }