Package jasima.shopSim.core.batchForming
Class BatchForming
- java.lang.Object
-
- jasima.shopSim.core.batchForming.BatchForming
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
BestOfFamilyBatching,HighestJobBatchingMBS,MostCompleteBatch
public abstract class BatchForming extends Object implements Cloneable, Serializable
Base class for batch forming implementations.When implementing formBatches() make sure not to remove any jobs from a machine's queue as this is later done in the Machine class after the best batch was selected and it is clear this batch can be started immediately.
- Author:
- Christoph Pickardt, 2010-05-27, Torsten Hildebrandt, 2010-03-18
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Job[]orderedJobsprotected PriorityQueue<Batch>possibleBatches
-
Constructor Summary
Constructors Constructor Description BatchForming()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BatchFormingclone()static Job[]ensureCapacity(Job[] jobs, int numElems)abstract voidformBatches()StringgetName()WorkStationgetOwner()static intindexOf(Job j, Job[] js, int numElems)PrioRuleTargetnextBatch()voidsetOwner(WorkStation o)static Map<String,List<Job>>splitFamilies(Job[] jobs, int numElems)StringtoString()
-
-
-
Field Detail
-
possibleBatches
protected PriorityQueue<Batch> possibleBatches
-
orderedJobs
protected Job[] orderedJobs
-
-
Method Detail
-
formBatches
public abstract void formBatches()
-
nextBatch
public PrioRuleTarget nextBatch()
-
getName
public String getName()
-
clone
public BatchForming clone()
-
getOwner
public WorkStation getOwner()
-
setOwner
public void setOwner(WorkStation o)
-
-