Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
type Constraint struct {
FirstEvent int
SecondEvent int
Interval Interval
Symmetry bool
Weight int
}
func (Constraint) Hold ¶
func (c Constraint) Hold(potential, other int) bool
func (Constraint) IsSatisfied ¶
func (c Constraint) IsSatisfied(potentials Schedule) bool
func (Constraint) String ¶
func (c Constraint) String() string
type Interval ¶
func (Interval) Normalized ¶ added in v0.1.7
type PeriodicEventNetwork ¶
type PeriodicEventNetwork struct {
Events int
Constraints []Constraint
Period int
}
PeriodicEventNetwork represents a network of periodic events
func ParsePeriodEventNetwork ¶
func ParsePeriodEventNetwork(file io.Reader) (*PeriodicEventNetwork, error)
func (PeriodicEventNetwork) IsFeasible ¶
func (pen PeriodicEventNetwork) IsFeasible(schedule Schedule) bool
func (*PeriodicEventNetwork) Objective ¶
func (pen *PeriodicEventNetwork) Objective(schedule Schedule) uint64
func (PeriodicEventNetwork) String ¶
func (pen PeriodicEventNetwork) String() string
Click to show internal directories.
Click to hide internal directories.