Documentation
¶
Index ¶
- func Analyzer(config model.Config)
- func Reduction(src model.Config, dst model.Config)
- type Count
- type MatchOptimizer
- func (mo *MatchOptimizer) GetMatches() []map[model.Role][]string
- func (mo *MatchOptimizer) MarshalJSON() ([]byte, error)
- func (mo *MatchOptimizer) SetMatchEnd(match map[model.Role][]string)
- func (mo *MatchOptimizer) SetMatchWeight(match map[model.Role][]string, weight float64)
- func (mo *MatchOptimizer) UnmarshalJSON(data []byte) error
- func (mo *MatchOptimizer) UpdateTeam(team string)
- type WaitingRoom
- func (wr *WaitingRoom) AddConnection(team string, connection model.Connection)
- func (wr *WaitingRoom) GetConnections() ([]model.Connection, error)
- func (wr *WaitingRoom) GetConnectionsWithMatchOptimizer(matches []map[model.Role][]string) (map[model.Role][]model.Connection, error)
- func (wr *WaitingRoom) Teams() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatchOptimizer ¶
type MatchOptimizer struct {
InfiniteLoop bool `json:"infinite_loop"`
TeamCount int `json:"team_count"`
GameCount int `json:"game_count"`
RoleNumMap map[model.Role]int `json:"role_num_map"`
IdxTeamMap map[int]string `json:"idx_team_map"`
ScheduledMatches []model.MatchWeight `json:"scheduled_matches"`
EndedMatches []map[model.Role][]int `json:"ended_matches"`
// contains filtered or unexported fields
}
func NewMatchOptimizer ¶
func NewMatchOptimizer(config model.Config) (*MatchOptimizer, error)
func NewMatchOptimizerFromConfig ¶
func NewMatchOptimizerFromConfig(config model.Config) (*MatchOptimizer, error)
func (*MatchOptimizer) GetMatches ¶
func (mo *MatchOptimizer) GetMatches() []map[model.Role][]string
func (*MatchOptimizer) MarshalJSON ¶
func (mo *MatchOptimizer) MarshalJSON() ([]byte, error)
func (*MatchOptimizer) SetMatchEnd ¶
func (mo *MatchOptimizer) SetMatchEnd(match map[model.Role][]string)
func (*MatchOptimizer) SetMatchWeight ¶
func (mo *MatchOptimizer) SetMatchWeight(match map[model.Role][]string, weight float64)
func (*MatchOptimizer) UnmarshalJSON ¶
func (mo *MatchOptimizer) UnmarshalJSON(data []byte) error
func (*MatchOptimizer) UpdateTeam ¶
func (mo *MatchOptimizer) UpdateTeam(team string)
type WaitingRoom ¶
type WaitingRoom struct {
// contains filtered or unexported fields
}
func NewWaitingRoom ¶
func NewWaitingRoom(config model.Config) *WaitingRoom
func (*WaitingRoom) AddConnection ¶
func (wr *WaitingRoom) AddConnection(team string, connection model.Connection)
func (*WaitingRoom) GetConnections ¶
func (wr *WaitingRoom) GetConnections() ([]model.Connection, error)
func (*WaitingRoom) GetConnectionsWithMatchOptimizer ¶
func (wr *WaitingRoom) GetConnectionsWithMatchOptimizer(matches []map[model.Role][]string) (map[model.Role][]model.Connection, error)
func (*WaitingRoom) Teams ¶
func (wr *WaitingRoom) Teams() []string
待機中のチーム名を返す。マッチオプティマイザへのチーム登録に使う。
Click to show internal directories.
Click to hide internal directories.