C# Class PurplePen.RelayVariations

Mostrar archivo Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
GetBranchWarnings ( ) : IEnumerable
GetTotalPossiblePaths ( ) : int
GetVariation ( int team, int leg ) : VariationInfo
RelayVariations ( EventDB eventDB, Id courseId, int numberTeams, int numberLegs ) : System

Private Methods

Method Description
AddForkToTeamAssignment ( Fork fork, int leg, TeamAssignment teamAssignment ) : void
AddLegToTeamAssignment ( int leg, TeamAssignment teamAssignment ) : void
CalcMinUniquePaths ( Fork startFork, int smallestPathsToThisPoint ) : int
FindForks ( ) : void
FindForksToJoin ( Id begin, Id join ) : Fork
GenerateAllTeams ( ) : void
GeneratePotentialTeam ( ) : TeamAssignment
GenerateTeam ( ) : TeamAssignment
GetPossibleBranches ( Fork fork ) : List
RandomLoop ( int numLoops ) : int[]
RemoveForkFromTeamAssignment ( Fork fork, int leg, TeamAssignment teamAssignment ) : void
ScanAllForks ( ) : void
ScanFork ( Fork startFork, int numLegsOnThisFork, int totalPathsToThisPoint ) : int
ScoreLegAssignment ( int leg, TeamAssignment teamAssignment ) : int
ValidateLoopAssignment ( int loop, Fork fork, int leg, TeamAssignment teamAssignment ) : bool

Method Details

GetBranchWarnings() public method

public GetBranchWarnings ( ) : IEnumerable
return IEnumerable

GetTotalPossiblePaths() public method

public GetTotalPossiblePaths ( ) : int
return int

GetVariation() public method

public GetVariation ( int team, int leg ) : VariationInfo
team int
leg int
return VariationInfo

RelayVariations() public method

public RelayVariations ( EventDB eventDB, Id courseId, int numberTeams, int numberLegs ) : System
eventDB EventDB
courseId Id
numberTeams int
numberLegs int
return System