Example #1
0
 public ActiveEstimatedTask(ActiveEstimatedTask task)
     : base(task)
 {
     var t = task.Clone() as ActiveEstimatedTask;
     State = t.State;
     IsUrgent = t.IsUrgent;
     MonopolizeResource = t.MonopolizeResource;
     Estimation = t.Estimation;
 }
Example #2
0
        public ActiveEstimatedTask(ActiveEstimatedTask task)
            : base(task)
        {
            var t = task.Clone() as ActiveEstimatedTask;

            State              = t.State;
            IsUrgent           = t.IsUrgent;
            MonopolizeResource = t.MonopolizeResource;
            Estimation         = t.Estimation;
        }
Example #3
0
        public object Clone()
        {
            var result = new ActiveEstimation();

            result.Resource     = Resource;
            result.Result       = Result;
            result.LaunchTime   = LaunchTime;
            result.Destination  = Destination;
            result.NodesTimings = NodesTimings == null ? null : NodesTimings.Select(nt => nt.Clone() as TaskScheduler.NodeAvailabilityTime).ToArray();
            return(result);
        }
Example #4
0
 public object Clone()
 {
     var result = new ActiveEstimation();
     result.Resource = Resource;
     result.Result = Result;
     result.LaunchTime = LaunchTime;
     result.Destination = Destination;
     result.NodesTimings = NodesTimings == null ? null : NodesTimings.Select(nt => nt.Clone() as TaskScheduler.NodeAvailabilityTime).ToArray();
     return result;
 }