Documentation ¶
Index ¶
- type ISchedule
- type Schedule
- func (s *Schedule) AddMatch(match *Match)
- func (s *Schedule) AddMatchFromString(matchString string)
- func (s *Schedule) CalculateOOWP(teamName string) (float64, error)
- func (s *Schedule) CalculateOWP(targetTeamName string) (float64, error)
- func (s *Schedule) CalculateRPI(teamName string) (float64, error)
- func (s *Schedule) CalculateWP(teamName, skipTeamName string) (float64, error)
- func (s *Schedule) Contains(teamName string) bool
- func (s *Schedule) GetLossesForTeam(teamName, skipTeamName string) (int, error)
- func (s *Schedule) GetMatches() []*Match
- func (s *Schedule) GetMatchesForTeam(teamName string) []*Match
- func (s *Schedule) GetMatchesPlayedBy(teamName string) ([]*Match, error)
- func (s *Schedule) GetMeetingCount(teamA, teamB string) (int, error)
- func (s *Schedule) GetOpponents(teamName string) ([]string, error)
- func (s *Schedule) GetTiesForTeam(teamName, skipTeamName string) (int, error)
- func (s *Schedule) GetTotalMatchesPlayed() int
- func (s *Schedule) GetTotalMatchesPlayedForTeam(teamName string) (int, error)
- func (s *Schedule) GetWinsForTeam(teamName, skipTeamName string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISchedule ¶
type ISchedule interface { AddMatch(match *Match) GetMatches() []*Match GetMatchesForTeam(teamName string) []*Match GetOpponents(teamName string) ([]string, error) GetOpponentsForTeam(teamName string) ([]string, error) GetMatchesPlayedBy(teamName string) ([]*Match, error) GetWinsForTeam(teamName, skipTeamName string) (int, error) GetLossesForTeam(teamName, skipTeamName string) (int, error) GetTiesForTeam(teamName, skipTeamName string) (int, error) GetTotalMatchesPlayedForTeam(teamName string) (int, error) GetTotalMatchesPlayed() int CalculateWP(teamName string) (float64, error) CalculateOWP(teamName string) (float64, error) CalculateOOWP(teamName string) (float64, error) CalculateRPI(teamName string) (float64, error) }
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func NewSchedule ¶
func NewSchedule() *Schedule
func (*Schedule) AddMatchFromString ¶
func (*Schedule) CalculateOOWP ¶
CalculateOOWP calculates the opponent's opponent's winning percentage for the specified team. The opponent's opponent's winning percentage is the average of the winning percentages of all of the opponents of the specified team.
func (*Schedule) CalculateOWP ¶
func (*Schedule) CalculateWP ¶
func (*Schedule) GetLossesForTeam ¶
func (*Schedule) GetMatches ¶
func (s *Schedule) GetMatches() []*Match
func (*Schedule) GetMatchesForTeam ¶
func (*Schedule) GetMatchesPlayedBy ¶
func (*Schedule) GetMeetingCount ¶
func (*Schedule) GetTiesForTeam ¶
func (*Schedule) GetTotalMatchesPlayed ¶
func (*Schedule) GetTotalMatchesPlayedForTeam ¶
Click to show internal directories.
Click to hide internal directories.