2020-04-10 11:30:32 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AutomationTool
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2020-06-20 16:29:10 -04:00
|
|
|
/// Defines a agggregate within a graph, which give the combined status of one or more job steps, and allow building several steps at once.
|
2020-04-10 11:30:32 -04:00
|
|
|
/// </summary>
|
2020-06-20 16:29:10 -04:00
|
|
|
class Aggregate
|
2020-04-10 11:30:32 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of this badge
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly string Name;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set of nodes that must be run for this label to be shown.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public HashSet<Node> RequiredNodes = new HashSet<Node>();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constructor
|
|
|
|
|
/// </summary>
|
2020-06-20 16:29:10 -04:00
|
|
|
/// <param name="InName">Name of this aggregate</param>
|
2020-06-24 19:54:03 -04:00
|
|
|
public Aggregate(string InName)
|
2020-04-10 11:30:32 -04:00
|
|
|
{
|
|
|
|
|
Name = InName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the name of this label
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The name of this label</returns>
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2020-06-20 16:29:10 -04:00
|
|
|
return Name;
|
2020-04-10 11:30:32 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|