Documentation
¶
Index ¶
- func WorkUnitsSize(units ...WorkUnit) int
- type AlternatingEpicBottomlessInventory
- type Grapher
- func (g *Grapher) PlotAchievedOutput(simRun int)
- func (g *Grapher) PlotAllWorkCenterInventories(simRun int)
- func (g *Grapher) PlotAllWorkCenterUnusedCapacity(simRun int)
- func (g *Grapher) PlotCumulativeUnusedCapacity(simRun int)
- func (g *Grapher) PlotLag(simRun int)
- func (g *Grapher) PlotRelativeCumulativeUnusedCapacity(simRun int)
- type InitialInventoryBase
- type Inventory
- type InventoryReceiver
- type OutputCollector
- type ProductionLine
- type ProductionLineRun
- type SimpleBottomlessInventory
- type WorkCenter
- type WorkCenterInventory
- func (inv *WorkCenterInventory) Add(unit WorkUnit)
- func (inv *WorkCenterInventory) AddAll(units []WorkUnit)
- func (inv *WorkCenterInventory) Get() []WorkUnit
- func (inv *WorkCenterInventory) Select(size int) ([]WorkUnit, []WorkUnit)
- func (inv *WorkCenterInventory) Set(units []WorkUnit)
- func (inv *WorkCenterInventory) TotalSize() int
- type WorkCenterRun
- type WorkUnit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkUnitsSize ¶
Types ¶
type AlternatingEpicBottomlessInventory ¶
type AlternatingEpicBottomlessInventory struct { InitialInventoryBase // contains filtered or unexported fields }
type Grapher ¶
type Grapher struct {
// contains filtered or unexported fields
}
func CreateGrapher ¶
func CreateGrapher(runs []ProductionLineRun, minCapacity, maxCapacity int) *Grapher
func (*Grapher) PlotAchievedOutput ¶
func (*Grapher) PlotAllWorkCenterInventories ¶
func (*Grapher) PlotAllWorkCenterUnusedCapacity ¶
func (*Grapher) PlotCumulativeUnusedCapacity ¶
func (*Grapher) PlotRelativeCumulativeUnusedCapacity ¶
type InitialInventoryBase ¶
type InitialInventoryBase struct { }
func (InitialInventoryBase) Add ¶
func (b InitialInventoryBase) Add(unit WorkUnit)
func (InitialInventoryBase) AddAll ¶
func (b InitialInventoryBase) AddAll(units []WorkUnit)
func (InitialInventoryBase) Get ¶
func (b InitialInventoryBase) Get() []WorkUnit
func (InitialInventoryBase) Set ¶
func (b InitialInventoryBase) Set(units []WorkUnit)
func (InitialInventoryBase) TotalSize ¶
func (b InitialInventoryBase) TotalSize() int
type Inventory ¶
type Inventory interface { InventoryReceiver Select(size int) ([]WorkUnit, []WorkUnit) TotalSize() int Set([]WorkUnit) Get() []WorkUnit }
type InventoryReceiver ¶
type OutputCollector ¶
type OutputCollector struct {
// contains filtered or unexported fields
}
func (*OutputCollector) Add ¶
func (o *OutputCollector) Add(unit WorkUnit)
func (*OutputCollector) AddAll ¶
func (o *OutputCollector) AddAll(units []WorkUnit)
func (*OutputCollector) CollectedSize ¶
func (o *OutputCollector) CollectedSize() int
type ProductionLine ¶
type ProductionLine struct {
// contains filtered or unexported fields
}
func CreateProductionLine ¶
func CreateProductionLine(size int) *ProductionLine
func CreateProductionLineWithSourceInventory ¶
func CreateProductionLineWithSourceInventory(size int, inventory Inventory) *ProductionLine
func (*ProductionLine) Run ¶
func (pl *ProductionLine) Run(from, to int) ProductionLineRun
func (*ProductionLine) WorkCenterCount ¶
func (pl *ProductionLine) WorkCenterCount() int
type ProductionLineRun ¶
type ProductionLineRun struct { AchievedOutput int WorkCenterStat []WorkCenterRun }
func CreateProductionRunLog ¶
func CreateProductionRunLog(workCenters int) ProductionLineRun
type SimpleBottomlessInventory ¶
type SimpleBottomlessInventory struct {
InitialInventoryBase
}
type WorkCenter ¶
type WorkCenter struct { Index int Inventory Inventory Output InventoryReceiver }
func (*WorkCenter) Run ¶
func (wc *WorkCenter) Run(from, to int) WorkCenterRun
type WorkCenterInventory ¶
type WorkCenterInventory struct {
// contains filtered or unexported fields
}
func (*WorkCenterInventory) Add ¶
func (inv *WorkCenterInventory) Add(unit WorkUnit)
func (*WorkCenterInventory) AddAll ¶
func (inv *WorkCenterInventory) AddAll(units []WorkUnit)
func (*WorkCenterInventory) Get ¶
func (inv *WorkCenterInventory) Get() []WorkUnit
func (*WorkCenterInventory) Select ¶
func (inv *WorkCenterInventory) Select(size int) ([]WorkUnit, []WorkUnit)
func (*WorkCenterInventory) Set ¶
func (inv *WorkCenterInventory) Set(units []WorkUnit)
func (*WorkCenterInventory) TotalSize ¶
func (inv *WorkCenterInventory) TotalSize() int
type WorkCenterRun ¶
type WorkCenterRun struct { WorkCenterIndex int InventorySizeBeforeRun int InventorySizeAfterRun int InventoryAtStart []WorkUnit RunCapacity int PassOnInventory []WorkUnit RemainingInventory []WorkUnit UnusedRunCapacity int }
func (*WorkCenterRun) InventoryAtEnd ¶
func (wcr *WorkCenterRun) InventoryAtEnd() int
func (*WorkCenterRun) UnusedCapacity ¶
func (wcr *WorkCenterRun) UnusedCapacity() int
Click to show internal directories.
Click to hide internal directories.