Package jasima.shopSim.models.staticShop
Class StaticShopExperiment
- java.lang.Object
-
- jasima.core.experiment.Experiment
-
- jasima.core.simulation.SimulationExperiment
-
- jasima.shopSim.core.ShopExperiment
-
- jasima.shopSim.models.staticShop.StaticShopExperiment
-
- All Implemented Interfaces:
SimOperations,Notifier<Experiment,Experiment.ExperimentEvent>,ValueStore,Serializable,Cloneable
public class StaticShopExperiment extends ShopExperiment
Experiment which loads a scheduling instance from a file or URL/URI. Shop and job data has to be described in this file.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaticShopExperiment.RoundingMode-
Nested classes/interfaces inherited from class jasima.core.experiment.Experiment
Experiment.ExperimentEvent, Experiment.ExperimentState, Experiment.UniqueNamesCheckingHashMap
-
Nested classes/interfaces inherited from interface jasima.core.simulation.util.SimOperations
SimOperations.SimEventType
-
-
Field Summary
-
Fields inherited from class jasima.shopSim.core.ShopExperiment
shop
-
Fields inherited from class jasima.core.simulation.SimulationExperiment
sim
-
Fields inherited from class jasima.core.experiment.Experiment
aborted, DEFAULT_SEED, error, EXCEPTION, EXCEPTION_MESSAGE, EXP_ABORTED, resultMap, RUNTIME
-
-
Constructor Summary
Constructors Constructor Description StaticShopExperiment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticShopExperimentclone()protected voidconfigureShop()protected voidcreateShop()doublegetDueDateTightness()StringgetInstFileName()URIgetInstURI()StaticShopExperiment.RoundingModegetRoundingMode()ShopDefgetShopDef()protected ShopDefloadWithTextFileReader()Loads a ShopDef from either a file or a resource.voidsetDueDateTightness(double dueDateTightness)Overwrites/sets the due dates of all jobs, if set to a value different from NaN (Not A Number).voidsetInstFileName(String instFileName)Sets the name of a file which is used to load the static problem instance.voidsetInstURI(URI instURI)Sets an arbitrary URI which is used to locate the problem instance.voidsetRoundingMode(StaticShopExperiment.RoundingMode roundingMode)Sets the rounding mode when computing a new due date.voidsetShopDef(ShopDef shopDef)Sets theShopDef-object to use.-
Methods inherited from class jasima.shopSim.core.ShopExperiment
addMachineListener, addMachineListener, addShopListener, beforeRun, createSimComponents, doCreateShop, done, finish, getBatchForming, getBatchForming, getBatchFormingRules, getBatchSequencingRule, getBatchSequencingRule, getBatchSequencingRules, getMachineListener, getMachineListenerSpecific, getMaxJobsInSystem, getSequencingRule, getSequencingRule, getSequencingRules, getShopListener, getStopAfterNumJobs, isEnableLookAhead, setBatchForming, setBatchFormingRules, setBatchSequencingRule, setBatchSequencingRules, setEnableLookAhead, setMachineListener, setMaxJobsInSystem, setSequencingRule, setSequencingRules, setShopListener, setStopAfterNumJobs
-
Methods inherited from class jasima.core.simulation.SimulationExperiment
addInitAction, afterRun, createSim, getInitialSimTime, getMainProcess, getModelRoot, getSim, getSimTimeStartInstant, getSimTimeToMillisFactor, getSimulationLength, getStatsResetTime, init, initSim, performRun, print, produceResults, setInitialSimTime, setMainProcess, setModelRoot, setSimTimeStartInstant, setSimTimeToMillisFactor, setSimTimeToMillisFactor, setSimulationLength, setStatsResetTime, toSimTime
-
Methods inherited from class jasima.core.experiment.Experiment
abort, addErrorResults, addStandardResults, cancel, checkCancelledOrInterrupted, executeSubExperiment, finalActions, getError, getInitialSeed, getLogLevel, getName, getPropsWithValues, getResults, getState, handleExecutionError, isCancelled, main, nestingLevel, nestingLevel, notifierImpl, print, print, print, print, printResults, readResolve, requireState, runExperiment, runExperimentAsync, runExperimentAsync, runExperimentInternal, runTimeReal, setInitialSeed, setLogLevel, setName, starting, state, toString, valueStoreImpl
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jasima.core.util.observer.Notifier
addListener, addListener, addListener, fire, fire, getListener, numListener, removeCurrentListener, removeListener
-
Methods inherited from interface jasima.core.simulation.util.SimOperations
activateEntity, addComponent, addResult, currentPrio, end, getRootComponent, initRndGen, initRndGen, isEndRequested, isTraceEnabled, schedule, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleAt, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, scheduleIn, schedulePeriodically, schedulePeriodically, scheduleProcess, scheduleProcess, simTime, simTimeAbs, simTimeToInstant, toSimTime, toSimTime, trace
-
Methods inherited from interface jasima.core.util.ValueStore
valueStoreContains, valueStoreGet, valueStoreGet, valueStoreGetAllKeys, valueStoreGetNumKeys, valueStorePut, valueStoreRemove, valueStoreUpdate
-
-
-
-
Method Detail
-
clone
public StaticShopExperiment clone()
- Overrides:
clonein classShopExperiment
-
createShop
protected void createShop()
- Overrides:
createShopin classShopExperiment
-
configureShop
protected void configureShop()
- Overrides:
configureShopin classShopExperiment
-
loadWithTextFileReader
protected ShopDef loadWithTextFileReader()
Loads a ShopDef from either a file or a resource.
-
getInstFileName
public String getInstFileName()
-
setInstFileName
public void setInstFileName(String instFileName)
Sets the name of a file which is used to load the static problem instance. If no file with the given name is found, an attempt is made to load a resource with the given name.- See Also:
setInstURI(URI)
-
getInstURI
public URI getInstURI()
-
setInstURI
public void setInstURI(URI instURI)
Sets an arbitrary URI which is used to locate the problem instance. This URI takes precedence over a file name set usingsetInstFileName(String).
-
getDueDateTightness
public double getDueDateTightness()
-
setDueDateTightness
public void setDueDateTightness(double dueDateTightness)
Overwrites/sets the due dates of all jobs, if set to a value different from NaN (Not A Number).- See Also:
setRoundingMode(RoundingMode)
-
getRoundingMode
public StaticShopExperiment.RoundingMode getRoundingMode()
-
setRoundingMode
public void setRoundingMode(StaticShopExperiment.RoundingMode roundingMode)
Sets the rounding mode when computing a new due date. This is only used if dueDateTightness is set to a value!=null. Rounds the result to an integer value.- See Also:
setDueDateTightness(double)
-
getShopDef
public ShopDef getShopDef()
-
setShopDef
public void setShopDef(ShopDef shopDef)
Sets theShopDef-object to use. Setting ashopDeftakes precedence over setting asetInstFileName(String)andsetInstURI(URI).
-
-