Exemplo n.º 1
0
 public ActivityEdge(int id, EventVertex source, EventVertex target, Activity activity, bool isCritical)
 {
     this.Id         = id;
     this.Source     = source;
     this.Target     = target;
     this.Activity   = activity;
     this.IsCritical = isCritical;
 }
Exemplo n.º 2
0
 public ActivityEdge(int id, EventVertex source, EventVertex target, Activity activity, bool isCritical)
 {
     this.Id = id;
     this.Source = source;
     this.Target = target;
     this.Activity = activity;
     this.IsCritical = isCritical;
 }
        private ActivityEdge CreateActivityEdge(EventVertex source, EventVertex target, Activity edgeActivity, bool isCritical)
        {
            var edgeUniqueKey = new Tuple<int, int>(source.Id, target.Id);
            int activityEdgeId;
            if (!edgesIdsMap.TryGetValue(edgeUniqueKey, out activityEdgeId))
            {
                edgesIdsMap[edgeUniqueKey] = activityEdgeId = edgesNextId;
                edgesNextId++;
            }

            return new ActivityEdge(activityEdgeId, source, target, edgeActivity, isCritical);
        }
Exemplo n.º 4
0
 public ActivityEdge(int id, EventVertex source, EventVertex target) : this(id, source, target, null, false)
 {
 }
Exemplo n.º 5
0
 public ActivityEdge(int id, EventVertex source, EventVertex target)
     : this(id, source, target, null, false)
 {
 }