Class CommonModel
java.lang.Object
common.definitions.CommonModel
- All Implemented Interfaces:
CommonConstants, BlockingRegionDefinition, ClassDefinition, SimulationDefinition, StationDefinition, EngineNodeConstants
- Direct Known Subclasses:
JSimGraphModel, JSIMModel
public class CommonModel
extends Object
implements CommonConstants, ClassDefinition, StationDefinition, SimulationDefinition, BlockingRegionDefinition
Created by IntelliJ IDEA.
User: OrsotronIII
Date: 24-mag-2005
Time: 9.46.43
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis class is used to store blocking region / class dataclassThis class is used to store blocking region / group dataprotected classThis class is used to store blocking region dataprotected classThis class packs altogether customer class parameters.protected classThis class represents a connection between two stations.protected static classThis class implements the comparator for search keys.protected classprotected classThis class contains all of the parameters to define a simulation measure, e.g.protected classThis class contains all of the data which can be defined for a combination of class and station.protected classThis class packs altogether station parameters.class -
Field Summary
FieldsModifier and TypeFieldDescriptionsearch key set of blockable stationsHashmap containing blocking region parametersprotected BDMapBDMap containing a set of blocking region details for each blocking region and each class.search key set of blocking regionsHashmap for classes parameterssearch key set of all classessearch key set of class switchessearch key set of closed classesprotected BDMapBDMap containing station connections.protected static JSimLoggersearch key set of delaysprotected Booleansearch key set of forksprotected longsearch key set of joinsprotected static Comparator<Object> protected CommonModel.LoggerGlobalParameterssearch key set of loggersprotected Doubleprotected Integerprotected Integerprotected Doubleprotected HashMap<Object, CommonModel.MeasureData> Hashmap containing measure parameterssearch key set of measuressearch key set of open classessearch key set of placesprotected Doublesearch key set of preloadable stationsprotected MeasureDefinitionsearch key set of routersprotected booleansearch key set of scalersprotected Longsearch key set of semaphoressearch key set of serversprotected BDMapBDMap containing service time distributions for each server type and class.protected HashMap<Object, ServerType> Hashmap containing Server Typessearch key set of sinkssearch key set of sourcesHashmap containing station parametersprotected BDMapBDMap containing a set of station details for each station and each class.search key set of all stationssearch key set of terminalssearch key set of transitionsprotected BooleanFields inherited from interface CommonConstants
ALL_CLASSES, ALL_MODES, ALL_STATIONS, BALKINGSTRATEGY_DESCRIPTION, BATCH_SIMULATION_DESCRIPTION, BLOCKING_DESCRIPTION, CLASS_TYPE_CLOSED, CLASS_TYPE_OPEN, CLASSES_DESCRIPTION, COMPATIBILITIES_DESCRIPTION, CONNECTIONS_DESCRIPTION, CONVERSION_WARNING_DESCRIPTION, DIM_BUTTON_L, DIM_BUTTON_M, DIM_BUTTON_S, DIM_BUTTON_XL, DIM_BUTTON_XS, DISTRIBUTION_BATCH, DISTRIBUTION_BERNOULLI_DISCRETE, DISTRIBUTION_BINOMIAL_DISCRETE, DISTRIBUTION_BURST, DISTRIBUTION_COXIAN, DISTRIBUTION_DETERMINISTIC, DISTRIBUTION_ERLANG, DISTRIBUTION_EXPONENTIAL, DISTRIBUTION_GAMMA, DISTRIBUTION_HYPEREXPONENTIAL, DISTRIBUTION_LOGNORMAL, DISTRIBUTION_MAP, DISTRIBUTION_MMPP2, DISTRIBUTION_NORMAL, DISTRIBUTION_PARETO, DISTRIBUTION_PHASETYPE, DISTRIBUTION_POISSON_DISCRETE, DISTRIBUTION_REPLAYER, DISTRIBUTION_SHIFTED_GEOMETRIC_DISCRETE, DISTRIBUTION_UNIFORM, DISTRIBUTION_UNIFORM_DISCRETE, DISTRIBUTION_WEIBULL, DISTRIBUTION_ZIPF_DISCRETE, FINITE_BLOCK, FINITE_DROP, FINITE_RETRIAL, FINITE_WAITING, FORK_CLASS_SWITCH, FORK_COMBINATION, FORK_MULTI_BRANCH_CLASS_SWITCH, FORK_PROBABILITIES, heightScaling, HTML_END, HTML_FONT_NOR_END, HTML_FONT_NORM, HTML_FONT_TIT_END, HTML_FONT_TITLE, HTML_START, IMG_JABAICON, IMG_JMCHICON, IMG_JMODELICON, IMG_JMVAICON, IMG_JSIMICON, IMG_JWATICON, IMG_SUITEICON, INFINITE_CAPACITY, JABA, JMVA, JOIN_MIX, JOIN_NORMAL, JOIN_PARTIAL, JSIM, JWAT, LARGE_ICON_SIZE_MENU_BAR, LARGE_ICON_SIZE_TOOL_BAR, LDROUTING_DESCRIPTION, LDSERVICE_DESCRIPTION, MAX_GUI_HEIGHT_ABOUT, MAX_GUI_HEIGHT_COMMON, MAX_GUI_HEIGHT_DIALOG_DEFAULT, MAX_GUI_HEIGHT_JABA, MAX_GUI_HEIGHT_JMCH, MAX_GUI_HEIGHT_JMVA, MAX_GUI_HEIGHT_JSIM_DISTRIB, MAX_GUI_HEIGHT_JSIM_PROBLEMS, MAX_GUI_HEIGHT_JSIM_RESULTS, MAX_GUI_HEIGHT_JSIM_STAT_OUTPUT, MAX_GUI_HEIGHT_JWAT, MAX_GUI_HEIGHT_JWAT_COLOR, MAX_GUI_HEIGHT_JWAT_STARTSCREEN, MAX_GUI_HEIGHT_LDEDITING, MAX_GUI_HEIGHT_LDHELP, MAX_GUI_HEIGHT_LDROUTING, MAX_GUI_HEIGHT_LDSTRATEGY, MAX_GUI_HEIGHT_POLLING, MAX_GUI_HEIGHT_PSSERVER, MAX_GUI_HEIGHT_QUICKHTML, MAX_GUI_HEIGHT_SERVER_FEATURES, MAX_GUI_HEIGHT_STARTSCREEN, MAX_GUI_HEIGHT_WHATIF_PROGRESS, MAX_GUI_HEIGHT_WHATIF_RESULTS, MAX_GUI_WIDTH_ABOUT, MAX_GUI_WIDTH_COMMON, MAX_GUI_WIDTH_DIALOG_DEFAULT, MAX_GUI_WIDTH_JABA, MAX_GUI_WIDTH_JMCH, MAX_GUI_WIDTH_JMVA, MAX_GUI_WIDTH_JSIM_DISTRIB, MAX_GUI_WIDTH_JSIM_PROBLEMS, MAX_GUI_WIDTH_JSIM_RESULTS, MAX_GUI_WIDTH_JSIM_STAT_OUTPUT, MAX_GUI_WIDTH_JWAT, MAX_GUI_WIDTH_JWAT_COLOR, MAX_GUI_WIDTH_JWAT_STARTSCREEN, MAX_GUI_WIDTH_LDEDITING, MAX_GUI_WIDTH_LDHELP, MAX_GUI_WIDTH_LDROUTING, MAX_GUI_WIDTH_LDSTRATEGY, MAX_GUI_WIDTH_POLLING, MAX_GUI_WIDTH_PSSERVER, MAX_GUI_WIDTH_QUICKHTML, MAX_GUI_WIDTH_SERVER_FEATURES, MAX_GUI_WIDTH_STARTSCREEN, MAX_GUI_WIDTH_WHATIF_PROGRESS, MAX_GUI_WIDTH_WHATIF_RESULTS, MAX_NUMBER_OF_CLASSES, MAX_NUMBER_OF_GROUPS, MAX_NUMBER_OF_PHASES, MAX_NUMBER_OF_REGIONS, MAX_NUMBER_OF_STATIONS, MAX_SMALL_ICON_SCREEN_HEIGHT, MAX_SMALL_ICON_SCREEN_WIDTH, MEASURE_LOG_DESCRIPTION, MEASURES_DESCRIPTION, METRIC_CONFIGURATIONS_DESCRIPTION, PAR1, PAR2, PARAMETRIC_ANALYSIS_DESCRIPTION, QUEUE_STRATEGY_DPS, QUEUE_STRATEGY_EDD, QUEUE_STRATEGY_EDF, QUEUE_STRATEGY_FCFS, QUEUE_STRATEGY_FCFS_PR, QUEUE_STRATEGY_GPS, QUEUE_STRATEGY_LCFS, QUEUE_STRATEGY_LCFS_PR, QUEUE_STRATEGY_LEPT, QUEUE_STRATEGY_LJF, QUEUE_STRATEGY_PS, QUEUE_STRATEGY_QBPS, QUEUE_STRATEGY_RAND, QUEUE_STRATEGY_SEPT, QUEUE_STRATEGY_SJF, QUEUE_STRATEGY_SRPT, QUEUE_STRATEGY_TBS, REFSOURCE_DESCRIPTION, ROUTING_CLASS_SWITCH, ROUTING_DISABLED, ROUTING_FASTESTSERVICE, ROUTING_LEASTUTILIZATION, ROUTING_LOADDEPENDENT, ROUTING_POWER_OF_K, ROUTING_PROBABILITIES, ROUTING_RANDOM, ROUTING_ROUNDROBIN, ROUTING_SHORTESTQL, ROUTING_SHORTESTRT, ROUTING_WEIGHTED_ROUNDROBIN, ROW_HEIGHT, SEMAPHORE_NORMAL, SERVER_FEATURE_CLASS_PARALLELISM, SERVER_FEATURE_DELAY_OFF_STRATEGIES, SERVER_FEATURE_PREEMPTIVE_STRATEGIES, SERVER_FEATURE_SCHEDULING_POLICY, SERVER_FEATURE_SERVER_COMPATIBILITIES, SERVER_FEATURE_SERVER_NAMES, SERVER_FEATURE_SERVERS_PER_SERVER_TYPE, SERVER_FEATURE_SETUP_STRATEGIES, SERVER_FEATURE_SWITCHOVER_STRATEGIES, SERVER_FEATURE_VACATION_STRATEGY, SERVER_PARAMETER_ADVANCED_FEATURES, SERVER_SETTINGS_DESCRIPTION, SERVER_VACATION_DESCRIPTION, SERVICE_DISABLED, SERVICE_LOAD_DEPENDENT, SERVICE_LOAD_INDEPENDENT, SERVICE_ZERO, SIMENGINE, SIMULATION_DESCRIPTION, SMALL_ICON_SIZE_MENU_BAR, SMALL_ICON_SIZE_TOOL_BAR, STATION_NAMES, STATION_QUEUE_STRATEGY_NON_PREEMPTIVE, STATION_QUEUE_STRATEGY_NON_PREEMPTIVE_PRIORITY, STATION_QUEUE_STRATEGY_POLLING, STATION_QUEUE_STRATEGY_POLLING_EXHAUSTIVE, STATION_QUEUE_STRATEGY_POLLING_GATED, STATION_QUEUE_STRATEGY_POLLING_LIMITED, STATION_QUEUE_STRATEGY_PREEMPTIVE, STATION_QUEUE_STRATEGY_PREEMPTIVE_PRIORITY, STATION_QUEUE_STRATEGY_PS, STATION_QUEUE_STRATEGY_PSSERVER, STATION_QUEUE_STRATEGY_PSSERVER_PRIORITY, STATION_SCHEDULING_POLICY_ALFS, STATION_SCHEDULING_POLICY_ALIS, STATION_SCHEDULING_POLICY_FAIRNESS, STATION_SCHEDULING_POLICY_FSF, STATION_SCHEDULING_POLICY_ORDER, STATION_SCHEDULING_POLICY_RAIS, STATION_TYPE_CLASSSWITCH, STATION_TYPE_DELAY, STATION_TYPE_FORK, STATION_TYPE_JOIN, STATION_TYPE_LOGGER, STATION_TYPE_PLACE, STATION_TYPE_ROUTER, STATION_TYPE_SCALER, STATION_TYPE_SEMAPHORE, STATION_TYPE_SERVER, STATION_TYPE_SINK, STATION_TYPE_SOURCE, STATION_TYPE_TERMINAL, STATION_TYPE_TRANSITION, STATION_VACATION_POLICY_BERNOULLI, STATION_VACATION_POLICY_MULTIPLE, STATION_VACATION_POLICY_NONE, STATION_VACATION_POLICY_SINGLE, STATIONS_DESCRIPTION, STATIONS_PAR_DESCRIPTION, SWITCHOVER_ZERO, TIMING_STRATEGY_IMMEDIATE, TIMING_STRATEGY_TIMED, WARNING_CLASS, WARNING_CLASS_INCOMING_ROUTING, WARNING_CLASS_OUTGOING_ROUTING, WARNING_CLASS_STATION, WARNING_INCOMING_ROUTING, WARNING_MULTI_CLASS, WARNING_OUTGOING_ROUTING, WARNING_STATION, widthScalingFields inherited from interface SimulationDefinition
MEASURE_AR, MEASURE_BR, MEASURE_CHR, MEASURE_DR, MEASURE_E, MEASURE_EU, MEASURE_FCR_MO, MEASURE_FCR_TW, MEASURE_FJ_CN, MEASURE_FJ_RP, MEASURE_FX, MEASURE_L, MEASURE_NS, MEASURE_OS, MEASURE_OT, MEASURE_P, MEASURE_QL, MEASURE_QT, MEASURE_RD, MEASURE_RN, MEASURE_RP, MEASURE_RP_PER_SINK, MEASURE_RT, MEASURE_S_BR, MEASURE_S_CN, MEASURE_S_DR, MEASURE_S_E, MEASURE_S_L, MEASURE_S_P, MEASURE_S_RN, MEASURE_S_RP, MEASURE_S_RT, MEASURE_S_T, MEASURE_S_X, MEASURE_T, MEASURE_U, MEASURE_X, MEASURE_X_PER_SINKFields inherited from interface StationDefinition
STATION_NAME, STATION_NUMBER_OF_SERVERS, STATION_QUEUE_CAPACITY, STATION_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBlockingDetails(Object regionKey) Adds blocking region details, given the search keyprotected voidaddBlockingDetailsForClass(Object classKey) Adds blocking region details for a class, given the search keyaddBlockingRegion(String name, String type) Adds a new blocking region to the modeladdClass(String name, int type, Integer priority, Double softDeadline, Integer population, Object distribution) Adds a new class to the model and sets all class parameters at once.voidaddClassIntoRegionGroup(Object regionKey, int index, Object classKey) Adds a class to a group for a blocking regionaddMeasure(String type, Object stationKey, Object classKey) Adds a new measure for specified class and station (or region)addMeasure(String type, Object stationKey, Object classKey, Double alpha, Double precision, boolean log) Adds a new measure for specified class and station (or region)voidaddRegionGroup(Object regionKey, String name) Adds a new group to a blocking regionbooleanaddRegionStation(Object regionKey, Object stationKey) Adds a station to a blocking regionvoidaddServerType(Object stationKey, int change) This method adds a server typevoidaddServerType(Object stationKey, String serverName, int serversPerServerType, List<Boolean> serverCompatibilities, boolean trimName) addStation(String name, String type, int nextServerNum, List<ServerType> servers) Adds a new station to the model, given the station name and type.protected voidaddStationDetails(Object key) Adds station details, given the search key.protected voidAdds station details for a class, given the search key.voidaddTransitionMode(Object stationKey, String name) Adds a new mode for transitionstationKey.booleanareConnectable(Object sourceKey, Object targetKey) Tells whether two stations can be connectedbooleanareConnected(Object sourceKey, Object targetKey) Tells whether two stations are connectedprotected booleancanBeConnected(Object sourceKey, Object targetKey) Tells whether two stations can be connected.booleancanRegionStationBeAdded(Object regionKey, Object stationKey) Tells if a station can be added to a blocking region (all the stations that create or destroy jobs cannot be added)protected booleancanStationTypeBeBlocked(String stationType) Tells if a station of a given type can be added to a blocking region (all the stations that create or destroy jobs cannot be added)booleanTells if current model contains simulation resultsvoiddeleteAllRegionGroups(Object regionKey) Deletes all the groups from a blocking regionprotected voiddeleteBlockingDetails(Object regionKey) Deletes blocking region details, given the search keyprotected voiddeleteBlockingDetailsForClass(Object classKey) Deletes blocking region details for a class, given the search keyvoidDeletes a blocking region from the modelvoiddeleteClass(Object key) Deletes a class from the model, given the search key.voiddeleteRegionGroup(Object regionKey, int index) Deletes a group from a blocking regionvoiddeleteServerType(Object stationKey, int index) This method deletes a server typevoiddeleteStation(Object key) Deletes a station from the model, given the search key.protected voidDeletes station details, given the search key.protected voidDeletes station details for a class, given the search key.voiddeleteTransitionMode(Object stationKey, int modeIndex) Deletes a mode for transitionstationKey.getAllTransitionModeNames(Object stationKey) Returns the names of all the modes for transitionstationKey.getBackwardConnectedPlaces(Object stationKey) getBackwardConnections(Object stationKey) Returns a set of station keys specified station is connected to as a target.Gets a vector of stations that can be added to a blocking regiongetBlockingRegionStations(Object regionKey) Returns a set of all the stations in a blocking regiongetClassByName(String className) Returns the search key for the class, given the class name.Returns inter-arrival time distribution of the class, given the search key.This method returns the key set of all classes.getClassName(Object key) Returns name of the class, given the search key.getClassPopulation(Object key) Returns population of the class, given the search key.getClassPriority(Object key) Returns priority of the class, given the search key.getClassRefStation(Object key) Returns reference station of the class, given the search key.Returns soft deadline of the class, given the search key.getClassStationSoftDeadline(Object stationKey, Object classKey) floatgetClassSwitchMatrix(Object stationKey, Object classInKey, Object classOutKey) Returns the cell (classInKey,classOutKey) of the class switch matrix for stationstationKey.intgetClassType(Object key) Returns type of the class, given the search key.This method returns the key set of closed classes.getDelayOffTimeDistribution(Object stationKey, Object classKey) Gets whether delay off times are enabled, given the search key.Tells if statistic check is disabled.getDropRule(Object stationKey, Object classKey) Returns drop rule associated with given station queue section if capacity is finite.getEnablingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Returns the entry (stationInKey,classKey) of the enabling condition for transitionstationKeyand modemodeIndex.This method returns the key set of blocking regions.getFiringOutcome(Object stationKey, int modeIndex, Object stationOutKey, Object classKey) Returns the entry (stationOutKey,classKey) of the firing outcome for transitionstationKeyand modemodeIndex.getFiringPriority(Object stationKey, int modeIndex) Returns the firing priority for transitionstationKeyand modemodeIndex.getFiringTimeDistribution(Object stationKey, int modeIndex) Returns the firing time distribution for transitionstationKeyand modemodeIndex.getFiringWeight(Object stationKey, int modeIndex) Returns the firing weight for transitionstationKeyand modemodeIndex.This method returns fork/join section keys.getForkBlock(Object key) Tells if a fork is blocking
Author: Bertoli MarcogetForkStrategy(Object stationKey, Object classKey) Returns fork strategy for class and station, given their search keys.getForwardConnections(Object stationKey) Returns a set of station keys specified station is connected to as a source.getHeterogeneousServersEnabled(Object stationKey) getImpatienceParameter(Object stationKey, Object classKey) Returns impatience parameter associated with given station queue section.getImpatienceType(Object stationKey, Object classKey) Returns impatience type associated with given station queue section.getInfoForServerType(Object stationKey, int index) This method returns a serverType given its station key and its order amongst the server types of that stationgetInhibitingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Returns the entry (stationInKey,classKey) of the inhibiting condition for transitionstationKeyand modemodeIndex.Tells if a fork is simplified
Author: Bertoli MarcogetJoinStrategy(Object stationKey, Object classKey) Returns join strategy for class and station, given their search keys.getLoggingGlbParameter(String selector) Returns logging parameters for the Global logfile.getLoggingParameters(Object stationKey) Returns logging parameters for the logger.Returns maximum duration for simulation in seconds.Returns maximum duration for simulation in time units.Returns maximum number of simulation events.Returns maximum number of simulation samples.getMeasureAlpha(Object measureKey) Returns value for alpha parameter of a specific measure, given its search key.getMeasureClass(Object measureKey) Returns search key for class this measure refers to.Returns list of measure search keysbooleangetMeasureLog(Object measureKey) Tells if a measure should be loggedgetMeasurePrecision(Object measureKey) Returns value for precision parameter of a specific measure, given its search key.getMeasureServerTypeKey(Object measureKey) Returns search key for server type this measure refers to.getMeasureStation(Object measureKey) Returns search key for station a certain measure refers to.getMeasureType(Object measureKey) Returns type of measure, given measure search keyintgetNumberOfDifferentServerTypes(Object stationKey) This method returns the number of different server typesgetNumberOfServers(Object stationKey, int modeIndex) Returns the number of servers for transitionstationKeyand modemodeIndex.This method returns the key set of open classes.Returns the ParametricAnalysisModelReturns polling interval for temporary measures.getPollingSwitchoverDistribution(Object stationKey, Object classKey) Returns switchover period distribution for class and station, given their search keys.getPreloadedJobs(Object stationKey, Object classKey) Returns number of preloaded jobs at specified station for specified class.getPreloadedJobsNumber(Object classKey) Returns total number of preloaded jobs for specified class.getQuantumSize(Object key) getQueueCapacity(Object stationKey, Object classKey) Returns queue capacity for a station and a class, given their search keys.getQueueStrategy(Object stationKey, Object classKey) Returns queue strategy for a station and a class, given their search keys.getRegionClassCustomerConstraint(Object regionKey, Object classKey) Gets the customer number constraint for a blocking region and a classgetRegionClassDropRule(Object regionKey, Object classKey) Gets the drop rule for a blocking region and a classgetRegionClassMemorySize(Object regionKey, Object classKey) Gets the memory size constraint for a blocking region and a classgetRegionClassSize(Object regionKey, Object classKey) Gets the size of each job for a blocking region and a classgetRegionClassSoftDeadline(Object regionKey, Object classKey) Gets the soft deadline of each job for a blocking region and a classgetRegionClassWeight(Object regionKey, Object classKey) Gets the weight of each job for a blocking region and a classgetRegionCustomerConstraint(Object regionKey) Gets the global customer number constraint for a blocking regiongetRegionGroupClassList(Object regionKey, int index) Returns a list of classes in a group for a blocking regiongetRegionGroupCustomerConstraint(Object regionKey, int index) Gets the customer number constraint for a blocking region and a groupgetRegionGroupList(Object regionKey) Returns a list of the group data for a blocking regiongetRegionGroupMemorySize(Object regionKey, int index) Gets the memory size constraint for a blocking region and a groupgetRegionGroupName(Object regionKey, int index) Gets the name of a group for a blocking regionReturns the entire set of blocking region keysgetRegionMemorySize(Object regionKey) Gets the global memory size constraint for a blocking regiongetRegionName(Object regionKey) Gets the name of a blocking regiongetRegionType(Object regionKey) Gets the type of a blocking regiongetResourceCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Returns the entry (stationInKey,classKey) of the resource condition for serverstationKeyand modemodeIndexgetRetrialDistribution(Object stationKey, Object classKey) Returns retrial rate distribution for class and station, given their search keys.getRoutingStrategy(Object stationKey, Object classKey) Returns routing strategy for class and station, given their search keys.getSemaphoreStrategy(Object stationKey, Object classKey) Returns semaphore strategy for class and station, given their search keys.getSemaphoreThreshold(Object stationKey, Object classKey) Returns the threshold for semaphorestationKeyand classclassKey.getServerNumRequired(Object stationKey, Object classKey) Returns number of servers required for a specific class, given the search key.getServerType(Object serverKey) This method returns Server Type given its keygetServerTypeKey(Object stationKey, String name) This method returns server type key given name and its stationThis method returns the key set of server Types.getServerTypeNames(Object stationKey) This method returns the names of different server typesgetServerTypes(Object stationKey) This method returns all server types of stationgetServerTypeStationName(Object serverKey) This method returns a server type name with respect to its station given its keygetServiceTimeDistribution(Object stationKey, Object classKey) Returns service time distribution for class and station, given their search keys.getServiceTimeDistribution(Object stationKey, Object classKey, Object serverTypeKey) Returns service time distribution for class, station and server type, given their search keys.getServiceWeight(Object stationKey, Object classKey) Returns service weight for class and station, given their search keys.getSetupTimeDistribution(Object stationKey, Object classKey) Returns last simulation resultsGets seed for simulation.getStationBlockingRegion(Object stationKey) Gets the blocking region of a stationgetStationByName(String stationName) Returns the search key for the station, given the station name.This method returns the key set of all stations.This method returns the key set of class switches.This method returns the key set of delays.This method returns the key set of forks.This method returns the key set of joins.This method returns the key set of loggers.This method returns all station (except sources and sinks) keys.This method returns the key set of places.This method returns the key set of preloadable stations.This method returns reference station keys.This method returns the key set of routers.This method returns the key set of scalers.This method returns the key set of semaphores.This method returns the key set of servers.This method returns the key set of sinks.This method returns the key set of sources.This method returns the key set of terminals.This method returns the key set of transitions.Returns max running jobs of the station, given the search key.getStationName(Object key) Returns name of the station, given the search key.Returns number of servers of the station, given the search key.Returns k value for K polling servers, given the search key.Returns type of polling server, given the search key.Returns queue capacity of the station, given the search key.Returns queue strategy of the station, given the search key.This method returns all station (except sources and sinks) and blocking region keys.This method returns scheduling policy of a stationReturns total capacity of the station, given the search key.getStationType(Object key) Returns type of the station, given the search key.getStationVacationParameters(Object stationKey) getStationVacationPolicy(Object stationKey) getSwitchoverTimeDistribution(Object stationKey, Object fromClassKey, Object toClassKey) Returns setup time distribution for class and station, given their search keys.Gets whether setup times are enabled, given the search key.intReturns total population of closed classesintgetTransitionModeListSize(Object stationKey) Returns the size of the mode list for transitionstationKey.getTransitionModeName(Object stationKey, int modeIndex) Returns the name of modemodeIndexfor transitionstationKey.protected StringgetUniqueClassName(String name) Returns given name if a class with the same name does not exist or makes it uniqueprotected StringgetUniqueRegionName(String name) Returns given name if a blocking region with the same name does not exist or makes it uniqueprotected StringgetUniqueStationName(String name) Returns given name if a station with the same name does not exist or makes it uniqueprotected StringgetUniqueTransitionModeName(Object key, String name) Returns given name if a mode with the same name does not exist or makes it unique for a transitionTells if random seed is used.Returns the number of simulations to be run in parallel during what if analysis.booleanTells if queue animation is enabledbooleanisFCRMeasure(String type) Tells if a given measure is for blocking regions onlybooleanisFJMeasure(String type) Tells if a given measure is for fork/join sections onlybooleanisGlobalMeasure(String type) Tells if a given measure is globalbooleanTells if parametric analysis is enabledbooleanisServerTypeKey(Object serverKey) This method returns true if it is a serverTypeKeybooleanisSinkMeasure(String type) Tells if a given measure is for sinks onlyprotected booleanisStationTypePreloadable(String stationType) Tells if a given station type is preloadablevoidThis method is used to manage number of jobs for every class.voidManages the routing, fork and class switch probabilities.voidnormalizeClassSwitchProbabilities(Object classKey, Map values, Number example) Normalizes the class switch probabilities.voidnormalizeForkProbabilities(Map<Object, Double> values) Normalizes the fork probabilities.voidNormalizes the routing probabilities.voidremoveAllClassesFromRegionGroup(Object regionKey, int index) Removes all the classes from a group for a blocking regionvoidremoveClassFromRegionGroup(Object regionKey, int index, Object classKey) Removes a class from a group for a blocking regionvoidremoveMeasure(Object measureKey) Removes a measure from list, given its search keyvoidremoveRegionStation(Object regionKey, Object stationKey) Removes a station from a blocking regionvoidresetImpatience(Object stationKey, Object classKey) Resets impatience strategy associated with given station queue section.voidResets save state.voidsetAnimationEnabled(boolean enabled) Enable / disable queue animationvoidsetClassDistribution(Object key, Object distribution) Sets inter-arrival time distribution of the class, given the search key.voidsetClassName(Object key, String name) Sets name of the class, given the search key.voidsetClassPopulation(Object key, Integer population) Sets population of the class, given the search key.voidsetClassPriority(Object key, Integer priority) Sets priority of the class, given the search key.voidsetClassRefStation(Object key, Object refStation) Sets reference station of the class, given the search key.voidsetClassSoftDeadline(Object key, Double softDeadline) Sets soft deadline of the class, given the search key.voidsetClassStationSoftDeadline(Object stationKey, Object classKey, Double softDeadline) voidsetClassSwitchMatrix(Object stationKey, Object classInKey, Object classOutKey, float value) Sets the cell (classInKey,classOutKey) of the class switch matrix for stationstationKey.voidsetClassType(Object key, int type) Sets type of the class, given the search key.booleansetConnected(Object sourceKey, Object targetKey, boolean areConnected) Adds a connection between two stations in this model, given search keys of source and target stations.voidsetDelayOffTimeDistribution(Object stationKey, Object classKey, Object distribution) voidsetDelayOffTimesEnabled(Object key, Boolean enabled) Sets whether delay off times are enabled, given the search key.voidsetDisableStatistic(Boolean disableStatistic) Sets if statistic check is disabled.voidsetDropRule(Object stationKey, Object classKey, String dropRule) Sets drop rule associated with given station queue section if capacity is finite.voidsetEnablingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Sets the entry (stationInKey,classKey) of the enabling condition for transitionstationKeyand modemodeIndex.voidsetFiringOutcome(Object stationKey, int modeIndex, Object stationOutKey, Object classKey, Integer value) Sets the entry (stationOutKey,classKey) of the firing outcome for transitionstationKeyand modemodeIndex.voidsetFiringPriority(Object stationKey, int modeIndex, Integer priority) Sets the firing priority for transitionstationKeyand modemodeIndex.voidsetFiringTimeDistribution(Object stationKey, int modeIndex, Object distribution) Sets the firing time distribution for transitionstationKeyand modemodeIndex.voidsetFiringWeight(Object stationKey, int modeIndex, Double weight) Sets the firing weight for transitionstationKeyand modemodeIndex.voidsetForkBlock(Object key, Integer value) Sets if a fork is blocking
Author: Bertoli MarcovoidsetForkStrategy(Object stationKey, Object classKey, Object forkStrategy) Sets fork strategy for class and station, given their search keys.voidsetHeterogeneousServersEnabled(Object key, Boolean enabled) voidsetImpatienceParameter(Object stationKey, Object classKey, ImpatienceParameter impatienceParameter) Sets impatience parameter associated with given station queue section.voidsetImpatienceType(Object stationKey, Object classKey, ImpatienceType impatienceType) Sets impatience type associated with given station queue section.voidsetInhibitingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Sets the entry (stationInKey,classKey) of the inhibiting condition for transitionstationKeyand modemodeIndex.voidsetIsSimplifiedFork(Object key, Boolean value) Sets if a fork is simplified
Author: Bertoli MarcovoidsetJoinStrategy(Object stationKey, Object classKey, Object joinStrategy) Sets join strategy for class and station, given their search keys.voidsetLoggingGlbParameter(String selector, String value) Sets logging parameters for the Global logfile.voidsetLoggingParameters(Object stationKey, LoggerParameters loggerParameters) Sets logging parameters for the logger.voidsetMaximumDuration(Double durationSeconds) Sets maximum duration for simulation in seconds.voidsetMaxSimulatedTime(Double duration) Sets maximum duration for simulation in time units.voidsetMaxSimulationEvents(Integer maxEvents) Sets maximum number of simulation events.voidsetMaxSimulationSamples(Integer maxSamples) Sets maximum number of simulation samples.voidsetMeasureAlpha(Double alpha, Object measureKey) Sets value for alpha parameter of a specific measure, given its search key.voidsetMeasureClass(Object classKey, Object measureKey) Changes reference class for specified measure, given its search keyvoidsetMeasureLog(boolean log, Object measureKey) Sets if measure should be loggedvoidsetMeasurePrecision(Double precision, Object measureKey) Sets value for alpha parameter of a specific measure, given its search key.voidsetMeasureServerTypeKey(Object serverTypeKey, Object measureKey) Changes server type for specified measure, given its search keyvoidsetMeasureStation(Object stationKey, Object measureKey) Changes reference station for specified measure, given its search keyvoidsetMeasureType(String newType, Object measureKey) Sets type of parameter to be measuredvoidsetNumberOfServers(Object stationKey, int modeIndex, Integer number) Sets the number of servers for transitionstationKeyand modemodeIndex.voidsetParametricAnalysisEnabled(boolean enabled) Enable / disable parametric analysisvoidSets the ParametricAnalysisModelvoidsetPollingInterval(Double pollingInterval) Sets polling interval for temporary measures.voidsetPollingSwitchoverDistribution(Object stationKey, Object classKey, Object distribution) Sets switchover period distribution for class and station, given their search keys.voidsetPreloadedJobs(Object stationKey, Object classKey, Integer preload) Sets number of preloaded jobs at specified station for specified class.voidsetQuantumSize(Object key, Double quantaSize) voidsetQuantumSwitchoverTime(Object key, Double quantumSwitchoverTime) voidsetQueueCapacity(Object stationKey, Object classKey, Integer queueCapacity) Sets queue capacity for a station and a class, given their search keys.voidsetQueueStrategy(Object stationKey, Object classKey, String queueStrategy) Sets queue strategy for a station and a class, given their search keys.voidsetRegionClassCustomerConstraint(Object regionKey, Object classKey, Integer maxJobs) Sets the customer number constraint for a blocking region and a classvoidsetRegionClassDropRule(Object regionKey, Object classKey, Boolean drop) Sets the drop rule for a blocking region and a classvoidsetRegionClassMemorySize(Object regionKey, Object classKey, Integer maxMemory) Sets the memory size constraint for a blocking region and a classvoidsetRegionClassSize(Object regionKey, Object classKey, Integer size) Sets the size of each job for a blocking region and a classvoidsetRegionClassSoftDeadline(Object regionKey, Object classKey, Double softDeadline) Sets the soft deadline of each job for a blocking region and a classvoidsetRegionClassWeight(Object regionKey, Object classKey, Integer weight) Sets the weight of each job for a blocking region and a classvoidsetRegionCustomerConstraint(Object regionKey, Integer maxJobs) Sets the global customer number constraint for a blocking regionvoidsetRegionGroupCustomerConstraint(Object regionKey, int index, Integer maxJobs) Sets the customer number constraint for a blocking region and a groupvoidsetRegionGroupMemorySize(Object regionKey, int index, Integer maxMemory) Sets the memory size constraint for a blocking region and a groupvoidsetRegionGroupName(Object regionKey, int index, String name) Sets the name of a group for a blocking regionvoidsetRegionMemorySize(Object regionKey, Integer maxMemory) Sets the global memory size constraint for a blocking regionvoidsetRegionName(Object regionKey, String name) Sets the name of a blocking regionvoidsetRegionType(Object regionKey, String type) Sets the type of a blocking regionvoidsetResourceCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Sets the entry (stationInKey,classKey) of the resource condition for serverstationKeyand modemodeIndex.voidsetRetrialDistribution(Object stationKey, Object classKey, Object distribution) Sets retrial rate distribution for class and station, given their search keys.voidsetRoutingStrategy(Object stationKey, Object classKey, Object routingStrategy) Sets routing strategy for class and station, given their search keys.voidTells model that some data has been changed and need to be saved.voidsetSemaphoreStrategy(Object stationKey, Object classKey, Object semaphoreStrategy) Sets semaphore strategy for class and station, given their search keys.voidsetSemaphoreThreshold(Object stationKey, Object classKey, Integer threshold) Sets the threshold for semaphorestationKeyand classclassKey.voidsetServerNumRequired(Object stationKey, Object classKey, Integer num) Sets number of servers of the station, given the search key.voidsetServiceTimeDistribution(Object stationKey, Object classKey, Object distribution) Sets service time distribution for class and station, given their search keys.voidsetServiceTimeDistribution(Object stationKey, Object classKey, Object serverTypeKey, Object distribution) Sets service time distribution for class, station and server type, given their search keys.voidsetServiceWeight(Object stationKey, Object classKey, Double weight) Sets service weight for class and station, given their search keys.voidsetSetupTimeDistribution(Object stationKey, Object classKey, Object distribution) voidsetSimulationResults(MeasureDefinition results) Sets simulation resultsvoidsetSimulationSeed(Long seed) Sets seed for simulation.voidsetStationMaxRunningJobs(Object key, Integer maxRunningJobs) Sets max running jobs of the station, given the search key.voidsetStationName(Object key, String name) Sets name of the station, given the search key.voidsetStationNumberOfServers(Object key, Integer numberOfServers) Sets number of servers of the station, given the search key.voidSets k value for K polling servers, given the search key.voidsetStationPollingServerType(Object key, String pollingType) Sets type of polling server, given the search key.voidsetStationQueueCapacity(Object key, Integer queueCapacity) Sets queue capacity of the station, given the search key.voidsetStationQueueStrategy(Object key, String queueStrategy) Sets queue strategy of the station, given the search key.voidsetStationSchedulingPolicy(Object key, String schedulingPolicy) This method sets scheduling policy of a stationvoidsetStationTotalCapacity(Object key, Integer totalStationCapacity) Sets total capacity of the station, given the search key.voidsetStationType(Object key, String type) Sets type of the station, given the search key.voidsetStationVacationPolicy(Object stationKey, String vacationPolicy) voidsetSwitchoverTimeDistribution(Object stationKey, Object fromClassKey, Object toClassKey, Object distribution) Sets setup time distribution for class and station, given their search keys.voidsetSwitchoverTimesEnabled(Object key, Boolean enabled) Sets whether setup times are enabled, given the search key.voidsetTransitionModeName(Object stationKey, int modeIndex, String name) Sets the name of modemodeIndexfor transitionstationKey.voidsetUseRandomSeed(Boolean useRandomSeed) Sets if random seed is used.booleanTells if current model is to be savedvoidupdateBalkingParameter(Object stationKey, Object classKey, String serverStationQueuePolicy) Updates balking parameter associated with given station queue section.voidupdateNumOfServers(Object stationKey, int newTotal) This method updates number of servers of different server types in stationvoidupdateServerTypeIds(Object stationKey)
-
Field Details
-
incrementalKey
protected long incrementalKey -
seed
-
useRandomSeed
-
maxDuration
-
maxSimulatedTime
-
maxSamples
-
disableStatistic
-
maxEvents
-
pollingInterval
-
results
-
loggerGlbParams
-
save
protected boolean save -
keyComparator
-
debugLog
-
classesKeyset
-
openClassesKeyset
-
closedClassesKeyset
-
stationsKeyset
-
sourcesKeyset
-
sinksKeyset
-
terminalsKeyset
-
routersKeyset
-
delaysKeyset
-
serversKeyset
-
forksKeyset
-
joinsKeyset
-
loggersKeyset
-
classSwitchesKeyset
-
semaphoresKeyset
-
scalersKeyset
-
placesKeyset
-
transitionsKeyset
-
preloadableKeyset
-
blockingRegionsKeyset
-
blockableKeyset
-
measuresKeyset
-
classDataHM
-
stationDataHM
-
serverTypesHM
Hashmap containing Server Types -
serverTypeDistributionsBDM
BDMap containing service time distributions for each server type and class. on X coordinate must be put class search keys, on Y server type ids. -
measureDataHM
Hashmap containing measure parameters -
blockingDataHM
-
connectionsBDM
BDMap containing station connections. On X coordinate will be put stationKeys for connection targets, on Y for sources. -
stationDetailsBDM
BDMap containing a set of station details for each station and each class. on X coordinate must be put class search keys, on Y station search keys. -
blockingDetailsBDM
BDMap containing a set of blocking region details for each blocking region and each class. on X coordinate must be put class search keys, on Y blocking region search keys.
-
-
Constructor Details
-
CommonModel
public CommonModel()Creates a new instance ofCommonModel
-
-
Method Details
-
toBeSaved
public boolean toBeSaved()Tells if current model is to be saved- Returns:
- true if model is to be saved
-
resetSaveState
public void resetSaveState()Resets save state. This MUST be called each time a model is saved -
getClassKeys
This method returns the key set of all classes.- Specified by:
getClassKeysin interfaceClassDefinition
-
getOpenClassKeys
This method returns the key set of open classes.- Specified by:
getOpenClassKeysin interfaceClassDefinition
-
getClosedClassKeys
This method returns the key set of closed classes.- Specified by:
getClosedClassKeysin interfaceClassDefinition
-
getClassName
Returns name of the class, given the search key.- Specified by:
getClassNamein interfaceClassDefinition
-
setClassName
Sets name of the class, given the search key.- Specified by:
setClassNamein interfaceClassDefinition
-
getClassType
Returns type of the class, given the search key.- Specified by:
getClassTypein interfaceClassDefinition
-
setClassType
Sets type of the class, given the search key.- Specified by:
setClassTypein interfaceClassDefinition
-
getClassPriority
Returns priority of the class, given the search key.- Specified by:
getClassPriorityin interfaceClassDefinition
-
setClassPriority
Sets priority of the class, given the search key.- Specified by:
setClassPriorityin interfaceClassDefinition
-
getClassSoftDeadline
Description copied from interface:ClassDefinitionReturns soft deadline of the class, given the search key.- Specified by:
getClassSoftDeadlinein interfaceClassDefinition
-
setClassSoftDeadline
Description copied from interface:ClassDefinitionSets soft deadline of the class, given the search key.- Specified by:
setClassSoftDeadlinein interfaceClassDefinition
-
getClassPopulation
Returns population of the class, given the search key.- Specified by:
getClassPopulationin interfaceClassDefinition
-
setClassPopulation
Sets population of the class, given the search key.- Specified by:
setClassPopulationin interfaceClassDefinition
-
getClassDistribution
Returns inter-arrival time distribution of the class, given the search key.- Specified by:
getClassDistributionin interfaceClassDefinition
-
setClassDistribution
Sets inter-arrival time distribution of the class, given the search key.- Specified by:
setClassDistributionin interfaceClassDefinition
-
getClassRefStation
Returns reference station of the class, given the search key.- Specified by:
getClassRefStationin interfaceClassDefinition
-
setClassRefStation
Sets reference station of the class, given the search key.- Specified by:
setClassRefStationin interfaceClassDefinition
-
addClass
public Object addClass(String name, int type, Integer priority, Double softDeadline, Integer population, Object distribution) Adds a new class to the model and sets all class parameters at once.- Specified by:
addClassin interfaceClassDefinition- Parameters:
name- name of the new class.type- type of the new class.priority- priority of the new class.softDeadline- soft deadline of the new class.population- population of the new class.distribution- inter-arrival time distribution of the new class.- Returns:
- search key for the new class.
-
deleteClass
Deletes a class from the model, given the search key.- Specified by:
deleteClassin interfaceClassDefinition
-
getStationKeys
This method returns the key set of all stations.- Specified by:
getStationKeysin interfaceStationDefinition
-
getStationKeysSource
This method returns the key set of sources.- Specified by:
getStationKeysSourcein interfaceStationDefinition
-
getServerTypeKeys
This method returns the key set of server Types.- Specified by:
getServerTypeKeysin interfaceStationDefinition
-
getStationKeysSink
This method returns the key set of sinks.- Specified by:
getStationKeysSinkin interfaceStationDefinition
-
getStationKeysTerminal
This method returns the key set of terminals.- Specified by:
getStationKeysTerminalin interfaceStationDefinition
-
getStationKeysRouter
This method returns the key set of routers.- Specified by:
getStationKeysRouterin interfaceStationDefinition
-
getStationKeysDelay
This method returns the key set of delays.- Specified by:
getStationKeysDelayin interfaceStationDefinition
-
getStationKeysServer
This method returns the key set of servers.- Specified by:
getStationKeysServerin interfaceStationDefinition
-
getStationKeysFork
This method returns the key set of forks.- Specified by:
getStationKeysForkin interfaceStationDefinition
-
getStationKeysJoin
This method returns the key set of joins.- Specified by:
getStationKeysJoinin interfaceStationDefinition
-
getStationKeysLogger
This method returns the key set of loggers.- Specified by:
getStationKeysLoggerin interfaceStationDefinition
-
getStationKeysClassSwitch
This method returns the key set of class switches.- Specified by:
getStationKeysClassSwitchin interfaceStationDefinition
-
getStationKeysSemaphore
This method returns the key set of semaphores.- Specified by:
getStationKeysSemaphorein interfaceStationDefinition
-
getStationKeysScaler
This method returns the key set of scalers.- Specified by:
getStationKeysScalerin interfaceStationDefinition
-
getStationKeysPlace
This method returns the key set of places.- Specified by:
getStationKeysPlacein interfaceStationDefinition
-
getStationKeysTransition
This method returns the key set of transitions.- Specified by:
getStationKeysTransitionin interfaceStationDefinition
-
getStationKeysPreloadable
This method returns the key set of preloadable stations.- Specified by:
getStationKeysPreloadablein interfaceStationDefinition
-
getStationKeysNoSourceSink
This method returns all station (except sources and sinks) keys.- Specified by:
getStationKeysNoSourceSinkin interfaceStationDefinition
-
getStationKeysRefStation
This method returns reference station keys.- Specified by:
getStationKeysRefStationin interfaceStationDefinition
-
getFJKeys
This method returns fork/join section keys.- Specified by:
getFJKeysin interfaceStationDefinition
-
getFCRegionKeys
This method returns the key set of blocking regions.- Specified by:
getFCRegionKeysin interfaceStationDefinition
-
getStationRegionKeysNoSourceSink
This method returns all station (except sources and sinks) and blocking region keys.- Specified by:
getStationRegionKeysNoSourceSinkin interfaceStationDefinition
-
getStationName
Returns name of the station, given the search key.- Specified by:
getStationNamein interfaceStationDefinition
-
setStationName
Sets name of the station, given the search key.- Specified by:
setStationNamein interfaceStationDefinition
-
getStationType
Returns type of the station, given the search key.- Specified by:
getStationTypein interfaceStationDefinition
-
setStationType
Sets type of the station, given the search key.- Specified by:
setStationTypein interfaceStationDefinition
-
getStationQueueCapacity
Returns queue capacity of the station, given the search key.- Specified by:
getStationQueueCapacityin interfaceStationDefinition
-
setStationQueueCapacity
Sets queue capacity of the station, given the search key.- Specified by:
setStationQueueCapacityin interfaceStationDefinition
-
getStationQueueStrategy
Returns queue strategy of the station, given the search key.- Specified by:
getStationQueueStrategyin interfaceStationDefinition
-
setStationQueueStrategy
Sets queue strategy of the station, given the search key.- Specified by:
setStationQueueStrategyin interfaceStationDefinition
-
getStationNumberOfServers
Returns number of servers of the station, given the search key.- Specified by:
getStationNumberOfServersin interfaceStationDefinition
-
setStationNumberOfServers
Sets number of servers of the station, given the search key.- Specified by:
setStationNumberOfServersin interfaceStationDefinition
-
getStationMaxRunningJobs
Returns max running jobs of the station, given the search key.- Specified by:
getStationMaxRunningJobsin interfaceStationDefinition
-
setStationMaxRunningJobs
Sets max running jobs of the station, given the search key.- Specified by:
setStationMaxRunningJobsin interfaceStationDefinition
-
setQuantumSize
- Specified by:
setQuantumSizein interfaceStationDefinition
-
getQuantumSize
- Specified by:
getQuantumSizein interfaceStationDefinition
-
setQuantumSwitchoverTime
- Specified by:
setQuantumSwitchoverTimein interfaceStationDefinition
-
getQuantumSwitchoverTime
- Specified by:
getQuantumSwitchoverTimein interfaceStationDefinition
-
getStationTotalCapacity
Returns total capacity of the station, given the search key.- Specified by:
getStationTotalCapacityin interfaceStationDefinition
-
setStationTotalCapacity
Sets total capacity of the station, given the search key.- Specified by:
setStationTotalCapacityin interfaceStationDefinition
-
getStationPollingServerType
Returns type of polling server, given the search key.- Specified by:
getStationPollingServerTypein interfaceStationDefinition
-
setStationPollingServerType
Sets type of polling server, given the search key.- Specified by:
setStationPollingServerTypein interfaceStationDefinition
-
getStationPollingServerKValue
Returns k value for K polling servers, given the search key.- Specified by:
getStationPollingServerKValuein interfaceStationDefinition
-
setStationPollingServerKValue
Sets k value for K polling servers, given the search key.- Specified by:
setStationPollingServerKValuein interfaceStationDefinition
-
getSwitchoverTimesEnabled
Gets whether setup times are enabled, given the search key.- Specified by:
getSwitchoverTimesEnabledin interfaceStationDefinition
-
setSwitchoverTimesEnabled
Sets whether setup times are enabled, given the search key.- Specified by:
setSwitchoverTimesEnabledin interfaceStationDefinition
-
getDelayOffTimesEnabled
Gets whether delay off times are enabled, given the search key.- Specified by:
getDelayOffTimesEnabledin interfaceStationDefinition
-
setDelayOffTimesEnabled
Sets whether delay off times are enabled, given the search key.- Specified by:
setDelayOffTimesEnabledin interfaceStationDefinition
-
getForkBlock
Tells if a fork is blocking
Author: Bertoli Marco- Specified by:
getForkBlockin interfaceStationDefinition- Parameters:
key- : search's key for fork- Returns:
- maximum number of jobs allowed in the fork-join region (-1 is infinity)
-
setForkBlock
Sets if a fork is blocking
Author: Bertoli Marco- Specified by:
setForkBlockin interfaceStationDefinition- Parameters:
key- : search's key for forkvalue- : maximum number of jobs allowed in the fork-join region (-1 is infinity)
-
getIsSimplifiedFork
Tells if a fork is simplified
Author: Bertoli Marco- Specified by:
getIsSimplifiedForkin interfaceStationDefinition- Parameters:
key- : search's key for fork- Returns:
- true if the fork is simplified, false otherwise
-
setIsSimplifiedFork
Sets if a fork is simplified
Author: Bertoli Marco- Specified by:
setIsSimplifiedForkin interfaceStationDefinition- Parameters:
key- : search's key for forkvalue- : true if the fork is simplified, false otherwise
-
addStation
Adds a new station to the model, given the station name and type.- Specified by:
addStationin interfaceStationDefinition- Parameters:
name- name of the new station.type- type of the new station.- Returns:
- search key for the new station.
-
deleteStation
Deletes a station from the model, given the search key.- Specified by:
deleteStationin interfaceStationDefinition
-
getClassStationSoftDeadline
- Specified by:
getClassStationSoftDeadlinein interfaceStationDefinition
-
setClassStationSoftDeadline
- Specified by:
setClassStationSoftDeadlinein interfaceStationDefinition
-
getQueueCapacity
Returns queue capacity for a station and a class, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getQueueCapacityin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- integer for queue capacity.
-
setQueueCapacity
Sets queue capacity for a station and a class, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setQueueCapacityin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.queueCapacity- integer for queue capacity.
-
getQueueStrategy
Returns queue strategy for a station and a class, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getQueueStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- string name for queue strategy.
-
setQueueStrategy
Sets queue strategy for a station and a class, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setQueueStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.queueStrategy- : string name for queue strategy.
-
getDropRule
Returns drop rule associated with given station queue section if capacity is finite.- Specified by:
getDropRulein interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- FINITE_DROP || FINITE_BLOCK || FINITE_WAITING || FINITE_RETRIAL
-
setDropRule
Sets drop rule associated with given station queue section if capacity is finite.- Specified by:
setDropRulein interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.dropRule- : FINITE_DROP || FINITE_BLOCK || FINITE_WAITING || FINITE_RETRIAL
-
getImpatienceType
Returns impatience type associated with given station queue section.- Specified by:
getImpatienceTypein interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- NONE || BALKING || RENEGING
-
setImpatienceType
Sets impatience type associated with given station queue section.- Specified by:
setImpatienceTypein interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.impatienceType- NONE || BALKING || RENEGING
-
getImpatienceParameter
Returns impatience parameter associated with given station queue section.- Specified by:
getImpatienceParameterin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- impatience parameter for station and class.
-
setImpatienceParameter
public void setImpatienceParameter(Object stationKey, Object classKey, ImpatienceParameter impatienceParameter) Sets impatience parameter associated with given station queue section.- Specified by:
setImpatienceParameterin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.impatienceParameter- parameter for station and class.
-
resetImpatience
Resets impatience strategy associated with given station queue section.- Specified by:
resetImpatiencein interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.
-
updateBalkingParameter
public void updateBalkingParameter(Object stationKey, Object classKey, String serverStationQueuePolicy) Updates balking parameter associated with given station queue section.- Specified by:
updateBalkingParameterin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.serverStationQueuePolicy- : queue policy for station.
-
getRetrialDistribution
Returns retrial rate distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getRetrialDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- distribution for specified class and station.
-
setRetrialDistribution
Sets retrial rate distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setRetrialDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.distribution- : distribution to be set for specified class and station.
-
getServiceWeight
Returns service weight for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getServiceWeightin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- weight for specified class and station.
-
setServiceWeight
Sets service weight for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setServiceWeightin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.weight- : weight to be set for specified class and station.
-
getServiceTimeDistribution
Returns service time distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getServiceTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- distribution for specified class and station.
-
getServiceTimeDistribution
Returns service time distribution for class, station and server type, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getServiceTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.serverTypeKey- : search key for server type.- Returns:
- distribution for specified class and station.
-
setServiceTimeDistribution
Sets service time distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setServiceTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.distribution- : distribution to be set for specified class and station.
-
setServiceTimeDistribution
public void setServiceTimeDistribution(Object stationKey, Object classKey, Object serverTypeKey, Object distribution) Sets service time distribution for class, station and server type, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setServiceTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.serverTypeKey- : search key for server type.distribution- : distribution to be set for specified class and station.
-
getPollingSwitchoverDistribution
Returns switchover period distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getPollingSwitchoverDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- distribution for specified class and station.
-
setPollingSwitchoverDistribution
public void setPollingSwitchoverDistribution(Object stationKey, Object classKey, Object distribution) Sets switchover period distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setPollingSwitchoverDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.distribution- : distribution to be set for specified class and station.
-
getSwitchoverTimeDistribution
public Object getSwitchoverTimeDistribution(Object stationKey, Object fromClassKey, Object toClassKey) Returns setup time distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getSwitchoverTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.fromClassKey- : search key for current class.toClassKey- : search key for next class.- Returns:
- distribution for the specified class and station.
-
setSwitchoverTimeDistribution
public void setSwitchoverTimeDistribution(Object stationKey, Object fromClassKey, Object toClassKey, Object distribution) Sets setup time distribution for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setSwitchoverTimeDistributionin interfaceStationDefinition- Parameters:
stationKey- : search key for station.fromClassKey- : search key for current class.toClassKey- : search key for next class.distribution- : distribution to be set for specified class and station.
-
getDelayOffTimeDistribution
- Specified by:
getDelayOffTimeDistributionin interfaceStationDefinition
-
setDelayOffTimeDistribution
- Specified by:
setDelayOffTimeDistributionin interfaceStationDefinition
-
getSetupTimeDistribution
- Specified by:
getSetupTimeDistributionin interfaceStationDefinition
-
setSetupTimeDistribution
- Specified by:
setSetupTimeDistributionin interfaceStationDefinition
-
getServerNumRequired
Returns number of servers required for a specific class, given the search key. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getServerNumRequiredin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- num for specified class and station.
-
setServerNumRequired
Sets number of servers of the station, given the search key.- Specified by:
setServerNumRequiredin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.num- : server number required to be set for specified class and station.
-
getRoutingStrategy
Returns routing strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getRoutingStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- routing strategy for specified class and station.
-
setRoutingStrategy
Sets routing strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setRoutingStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.routingStrategy- : routing strategy to be set for specified class and station.
-
getForkStrategy
Returns fork strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getForkStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- fork strategy for specified class and station.
-
setForkStrategy
Sets fork strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setForkStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.forkStrategy- : fork strategy to be set for specified class and station.
-
getJoinStrategy
Returns join strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getJoinStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- join strategy for specified class and station.
-
setJoinStrategy
Sets join strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setJoinStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.joinStrategy- : join strategy to be set for specified class and station.
-
getSemaphoreStrategy
Returns semaphore strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, null value is returned.- Specified by:
getSemaphoreStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.- Returns:
- semaphore strategy for specified class and station.
-
setSemaphoreStrategy
Sets semaphore strategy for class and station, given their search keys. If specified station cannot accept this kind of parameter, no value will be set.- Specified by:
setSemaphoreStrategyin interfaceStationDefinition- Parameters:
stationKey- : search key for station.classKey- : search key for class.semaphoreStrategy- : semaphore strategy to be set for specified class and station.
-
getLoggingParameters
Returns logging parameters for the logger. MF'08 0.7.4- Specified by:
getLoggingParametersin interfaceStationDefinition- Parameters:
stationKey- : search key for station.
-
setLoggingParameters
Sets logging parameters for the logger. MF'08 0.7.4- Specified by:
setLoggingParametersin interfaceStationDefinition- Parameters:
stationKey- : search key for station.loggerParameters- : local LoggerParameters.
-
getLoggingGlbParameter
Returns logging parameters for the Global logfile. MF'08 0.7.4- Specified by:
getLoggingGlbParameterin interfaceStationDefinition- Parameters:
selector- : either "path", "delim", or "autoAppend"
-
setLoggingGlbParameter
Sets logging parameters for the Global logfile. MF'08 0.7.4- Specified by:
setLoggingGlbParameterin interfaceStationDefinition- Parameters:
selector- : either "path", "delim", "decimalSeparator", or "autoAppend"value- : String to assign to variable named by selector.
-
manageProbabilities
public void manageProbabilities()Manages the routing, fork and class switch probabilities.- Specified by:
manageProbabilitiesin interfaceStationDefinition
-
normalizeRoutingProbabilities
public void normalizeRoutingProbabilities(Object stationKey, Object classKey, Map<Object, Double> values) Normalizes the routing probabilities.- Specified by:
normalizeRoutingProbabilitiesin interfaceStationDefinition
-
normalizeForkProbabilities
Normalizes the fork probabilities.- Specified by:
normalizeForkProbabilitiesin interfaceStationDefinition
-
normalizeClassSwitchProbabilities
Normalizes the class switch probabilities.- Specified by:
normalizeClassSwitchProbabilitiesin interfaceStationDefinition
-
addStationDetails
Adds station details, given the search key. -
deleteStationDetails
Deletes station details, given the search key. -
addStationDetailsForClass
Adds station details for a class, given the search key. -
deleteStationDetailsForClass
Deletes station details for a class, given the search key. -
setConnected
Adds a connection between two stations in this model, given search keys of source and target stations.- Specified by:
setConnectedin interfaceStationDefinition- Parameters:
sourceKey- : search key for source stationtargetKey- : search key for target stationareConnected- : true if stations must be connected, false otherwise.- Returns:
- : true if connection status was changed, false otherwise.
-
areConnected
Tells whether two stations are connected- Specified by:
areConnectedin interfaceStationDefinition- Parameters:
sourceKey- : search key for source stationtargetKey- : search key for target station- Returns:
- : true if stations are connected, false otherwise.
-
areConnectable
Tells whether two stations can be connected- Specified by:
areConnectablein interfaceStationDefinition- Parameters:
sourceKey- : search key for source stationtargetKey- : search key for target station- Returns:
- : true if stations are connectable, false otherwise.
-
getForwardConnections
Returns a set of station keys specified station is connected to as a source.- Specified by:
getForwardConnectionsin interfaceStationDefinition- Parameters:
stationKey- : source station for which (target) connected stations must be returned.- Returns:
- Vector containing keys for connected stations.
-
getBackwardConnections
Returns a set of station keys specified station is connected to as a target.- Specified by:
getBackwardConnectionsin interfaceStationDefinition- Parameters:
stationKey- : source station for which (source) connected stations must be returned.- Returns:
- Vector containing keys for connected stations.
-
getBackwardConnectedPlaces
- Specified by:
getBackwardConnectedPlacesin interfaceStationDefinition- Parameters:
stationKey- : source station which connected places must be returned- Returns:
- Vector containing backward connected places
-
canBeConnected
-
addMeasure
Description copied from interface:SimulationDefinitionAdds a new measure for specified class and station (or region)- Specified by:
addMeasurein interfaceSimulationDefinition- Parameters:
type- : code for measure type.stationKey- : specified station (or region) for measureclassKey- : specified class- Returns:
- search key for new measure
-
addMeasure
public Object addMeasure(String type, Object stationKey, Object classKey, Double alpha, Double precision, boolean log) Description copied from interface:SimulationDefinitionAdds a new measure for specified class and station (or region)- Specified by:
addMeasurein interfaceSimulationDefinition- Parameters:
type- : code for measure type.stationKey- : specified station for measureclassKey- : specified classalpha- : alpha parameter for this measureprecision- : precision parameter for this measurelog- : true to log the measure to CSV. False to avoid it.- Returns:
- search key for new measure
-
removeMeasure
Description copied from interface:SimulationDefinitionRemoves a measure from list, given its search key- Specified by:
removeMeasurein interfaceSimulationDefinition- Parameters:
measureKey- : search Key for measure to be removed
-
getMeasureKeys
Description copied from interface:SimulationDefinitionReturns list of measure search keys- Specified by:
getMeasureKeysin interfaceSimulationDefinition- Returns:
- Vector containing all of the measure search keys
-
getMeasureType
Description copied from interface:SimulationDefinitionReturns type of measure, given measure search key- Specified by:
getMeasureTypein interfaceSimulationDefinition- Parameters:
measureKey- : search key- Returns:
- measure type
-
setMeasureType
Description copied from interface:SimulationDefinitionSets type of parameter to be measured- Specified by:
setMeasureTypein interfaceSimulationDefinition- Parameters:
newType- new type for this measuremeasureKey- search key for this measure
-
getMeasureStation
Description copied from interface:SimulationDefinitionReturns search key for station a certain measure refers to.- Specified by:
getMeasureStationin interfaceSimulationDefinition- Parameters:
measureKey- search key for measure- Returns:
- search key for station.
-
setMeasureStation
Description copied from interface:SimulationDefinitionChanges reference station for specified measure, given its search key- Specified by:
setMeasureStationin interfaceSimulationDefinition- Parameters:
stationKey- : search key for station this measure must be referred to.measureKey- : search key for measure.
-
getMeasureClass
Description copied from interface:SimulationDefinitionReturns search key for class this measure refers to.- Specified by:
getMeasureClassin interfaceSimulationDefinition- Parameters:
measureKey- search key for measure- Returns:
- search key for class
-
setMeasureClass
Description copied from interface:SimulationDefinitionChanges reference class for specified measure, given its search key- Specified by:
setMeasureClassin interfaceSimulationDefinition- Parameters:
classKey- new class search keymeasureKey- measure search key
-
getMeasureServerTypeKey
Description copied from interface:SimulationDefinitionReturns search key for server type this measure refers to.- Specified by:
getMeasureServerTypeKeyin interfaceSimulationDefinition- Parameters:
measureKey- search key for measure- Returns:
- server type key for class
-
setMeasureServerTypeKey
Description copied from interface:SimulationDefinitionChanges server type for specified measure, given its search key- Specified by:
setMeasureServerTypeKeyin interfaceSimulationDefinition- Parameters:
serverTypeKey- new server type keymeasureKey- measure search key
-
getMeasureAlpha
Description copied from interface:SimulationDefinitionReturns value for alpha parameter of a specific measure, given its search key.- Specified by:
getMeasureAlphain interfaceSimulationDefinition- Parameters:
measureKey- search key for station- Returns:
- value of alpha parameter
-
setMeasureAlpha
Description copied from interface:SimulationDefinitionSets value for alpha parameter of a specific measure, given its search key.- Specified by:
setMeasureAlphain interfaceSimulationDefinition- Parameters:
alpha- value of alpha parametermeasureKey- search key for station
-
getMeasurePrecision
Description copied from interface:SimulationDefinitionReturns value for precision parameter of a specific measure, given its search key.- Specified by:
getMeasurePrecisionin interfaceSimulationDefinition- Parameters:
measureKey- search key for station- Returns:
- value of precision parameter
-
setMeasurePrecision
Description copied from interface:SimulationDefinitionSets value for alpha parameter of a specific measure, given its search key.- Specified by:
setMeasurePrecisionin interfaceSimulationDefinition- Parameters:
precision- value of alpha parametermeasureKey- search key for station
-
getMeasureLog
Description copied from interface:SimulationDefinitionTells if a measure should be logged- Specified by:
getMeasureLogin interfaceSimulationDefinition- Parameters:
measureKey- the key of the measure- Returns:
- true if measure should be logged, false otherwise.
-
setMeasureLog
Description copied from interface:SimulationDefinitionSets if measure should be logged- Specified by:
setMeasureLogin interfaceSimulationDefinition- Parameters:
log- true to log measure, false to avoid (default)measureKey- the key of the measure
-
isGlobalMeasure
Tells if a given measure is global- Specified by:
isGlobalMeasurein interfaceSimulationDefinition- Parameters:
type- type of given measure- Returns:
- true if measure is global
-
isSinkMeasure
Tells if a given measure is for sinks only- Specified by:
isSinkMeasurein interfaceSimulationDefinition- Parameters:
type- type of given measure- Returns:
- true if measure is for sinks only
-
isFCRMeasure
Tells if a given measure is for blocking regions only- Specified by:
isFCRMeasurein interfaceSimulationDefinition- Parameters:
type- type of given measure- Returns:
- true if measure is for blocking regions only
-
isFJMeasure
Tells if a given measure is for fork/join sections only- Specified by:
isFJMeasurein interfaceSimulationDefinition- Parameters:
type- type of given measure- Returns:
- true if measure is for fork/join sections only
-
getPreloadedJobs
Returns number of preloaded jobs at specified station for specified class.- Specified by:
getPreloadedJobsin interfaceSimulationDefinition- Parameters:
stationKey- station at which preloaded jobs are preloaded.classKey- class to which preloaded jobs belong.- Returns:
- number of preloaded jobs.
-
setPreloadedJobs
Sets number of preloaded jobs at specified station for specified class. For closed classes, total number of preloaded jobs for a class over all stations must be equal to class population, otherwise update is canceled.- Specified by:
setPreloadedJobsin interfaceSimulationDefinition- Parameters:
stationKey- station at which preloaded jobs are preloaded.classKey- class to which preloaded jobs belong.preload- number of preloaded jobs.
-
getPreloadedJobsNumber
Returns total number of preloaded jobs for specified class.- Specified by:
getPreloadedJobsNumberin interfaceSimulationDefinition- Parameters:
classKey- class to which preloaded jobs belong.- Returns:
- total number of preloaded jobs.
-
manageJobs
public void manageJobs()This method is used to manage number of jobs for every class. If class is closed all spare jobs will be allocated to its reference source, if for some reasons more jobs are allocated than max population, they are reduced. Uses this method only when strictly necessary as it can be slow if the model is big.- Specified by:
manageJobsin interfaceSimulationDefinition
-
isStationTypePreloadable
Tells if a given station type is preloadable- Parameters:
stationType- type of station- Returns:
- true if station of that type is preloadable, false otherwise
-
getSimulationSeed
Gets seed for simulation.- Specified by:
getSimulationSeedin interfaceSimulationDefinition- Returns:
- seed for simulation.
-
setSimulationSeed
Sets seed for simulation.- Specified by:
setSimulationSeedin interfaceSimulationDefinition- Parameters:
seed- seed for simulation.
-
getUseRandomSeed
Tells if random seed is used.- Specified by:
getUseRandomSeedin interfaceSimulationDefinition- Returns:
- true if random seed is used, false otherwise.
-
setUseRandomSeed
Sets if random seed is used.- Specified by:
setUseRandomSeedin interfaceSimulationDefinition- Parameters:
useRandomSeed- true if random seed is used, false otherwise.
-
getMaximumDuration
Returns maximum duration for simulation in seconds.- Specified by:
getMaximumDurationin interfaceSimulationDefinition- Returns:
- seconds of maximum duration for simulation.
-
setMaximumDuration
Sets maximum duration for simulation in seconds.- Specified by:
setMaximumDurationin interfaceSimulationDefinition- Parameters:
durationSeconds- seconds of maximum duration for simulation.
-
getMaxSimulatedTime
Returns maximum duration for simulation in time units.- Specified by:
getMaxSimulatedTimein interfaceSimulationDefinition- Returns:
- time units of maximum duration for simulation.
-
setMaxSimulatedTime
Sets maximum duration for simulation in time units.- Specified by:
setMaxSimulatedTimein interfaceSimulationDefinition- Parameters:
duration- time units of maximum duration for simulation.
-
getMaxSimulationSamples
Returns maximum number of simulation samples.- Specified by:
getMaxSimulationSamplesin interfaceSimulationDefinition- Returns:
- maximum number of simulation samples.
-
setMaxSimulationSamples
Sets maximum number of simulation samples.- Specified by:
setMaxSimulationSamplesin interfaceSimulationDefinition- Parameters:
maxSamples- maximum number of simulation samples.
-
getDisableStatistic
Tells if statistic check is disabled.- Specified by:
getDisableStatisticin interfaceSimulationDefinition- Returns:
- true if statistic check is disabled, false otherwise.
-
setDisableStatistic
Sets if statistic check is disabled.- Specified by:
setDisableStatisticin interfaceSimulationDefinition- Parameters:
disableStatistic- true if statistic check is disabled, false otherwise.
-
getMaxSimulationEvents
Returns maximum number of simulation events.- Specified by:
getMaxSimulationEventsin interfaceSimulationDefinition- Returns:
- maximum number of simulation events.
-
setMaxSimulationEvents
Sets maximum number of simulation events.- Specified by:
setMaxSimulationEventsin interfaceSimulationDefinition- Parameters:
maxEvents- maximum number of simulation events.
-
getPollingInterval
Returns polling interval for temporary measures.- Specified by:
getPollingIntervalin interfaceSimulationDefinition- Returns:
- polling interval for temporary measures.
-
setPollingInterval
Sets polling interval for temporary measures.- Specified by:
setPollingIntervalin interfaceSimulationDefinition- Parameters:
pollingInterval- polling interval for temporary measures.
-
getSimulationResults
Returns last simulation results- Specified by:
getSimulationResultsin interfaceSimulationDefinition- Returns:
- simulation results or null if no simulation was performed
-
setSimulationResults
Sets simulation results- Specified by:
setSimulationResultsin interfaceSimulationDefinition- Parameters:
results- simulation results data structure
-
containsSimulationResults
public boolean containsSimulationResults()Tells if current model contains simulation results- Specified by:
containsSimulationResultsin interfaceSimulationDefinition- Returns:
- true if
getSimulationResults()returns a non-null object
-
isAnimationEnabled
public boolean isAnimationEnabled()Tells if queue animation is enabled- Specified by:
isAnimationEnabledin interfaceSimulationDefinition- Returns:
- true if the animation is enabled
-
setAnimationEnabled
public void setAnimationEnabled(boolean enabled) Enable / disable queue animation- Specified by:
setAnimationEnabledin interfaceSimulationDefinition- Parameters:
enabled- - set it to true to enable queue animation
-
isParametricAnalysisEnabled
public boolean isParametricAnalysisEnabled()Tells if parametric analysis is enabled- Specified by:
isParametricAnalysisEnabledin interfaceSimulationDefinition- Returns:
- true if parametric analysis is enabled
-
setParametricAnalysisEnabled
public void setParametricAnalysisEnabled(boolean enabled) Enable / disable parametric analysis- Specified by:
setParametricAnalysisEnabledin interfaceSimulationDefinition- Parameters:
enabled- - set it to true to enable parametric analysis
-
getParametricAnalysisModel
Returns the ParametricAnalysisModel- Specified by:
getParametricAnalysisModelin interfaceSimulationDefinition- Returns:
- the parametricAnalysisModel
-
setParametricAnalysisModel
Sets the ParametricAnalysisModel- Specified by:
setParametricAnalysisModelin interfaceSimulationDefinition- Parameters:
pad- the parametricAnalysisModel to be set
-
setSaveChanged
public void setSaveChanged()Tells model that some data has been changed and need to be saved. This is used by Parametric Analysis- Specified by:
setSaveChangedin interfaceSimulationDefinition
-
getClassByName
Returns the search key for the class, given the class name.- Specified by:
getClassByNamein interfaceClassDefinition
-
getStationByName
Returns the search key for the station, given the station name.- Specified by:
getStationByNamein interfaceStationDefinition
-
addBlockingRegion
Adds a new blocking region to the model- Specified by:
addBlockingRegionin interfaceBlockingRegionDefinition- Parameters:
name- name of the new regiontype- type of the new region- Returns:
- search's key for new region
-
deleteBlockingRegion
Deletes a blocking region from the model- Specified by:
deleteBlockingRegionin interfaceBlockingRegionDefinition- Parameters:
key- search's key for region
-
getRegionKeys
Returns the entire set of blocking region keys- Specified by:
getRegionKeysin interfaceBlockingRegionDefinition- Returns:
- the entire set of blocking region keys
-
getRegionName
Gets the name of a blocking region- Specified by:
getRegionNamein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- name of the region
-
setRegionName
Sets the name of a blocking region- Specified by:
setRegionNamein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionname- name of the region
-
getRegionType
Gets the type of a blocking region- Specified by:
getRegionTypein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- type of the region
-
setRegionType
Sets the type of a blocking region- Specified by:
setRegionTypein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regiontype- type of the region
-
getRegionCustomerConstraint
Gets the global customer number constraint for a blocking region- Specified by:
getRegionCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- maximum number of allowed customers (-1 means infinity)
-
setRegionCustomerConstraint
Sets the global customer number constraint for a blocking region- Specified by:
setRegionCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionmaxJobs- maximum number of allowed customers (-1 means infinity)
-
getRegionMemorySize
Gets the global memory size constraint for a blocking region- Specified by:
getRegionMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- maximum size of allowed memory (-1 means infinity)
-
setRegionMemorySize
Sets the global memory size constraint for a blocking region- Specified by:
setRegionMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionmaxMemory- maximum size of allowed memory (-1 means infinity)
-
getRegionClassCustomerConstraint
Gets the customer number constraint for a blocking region and a class- Specified by:
getRegionClassCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- maximum number of allowed customers for specified class (-1 means infinity)
-
setRegionClassCustomerConstraint
Sets the customer number constraint for a blocking region and a class- Specified by:
setRegionClassCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classmaxJobs- maximum number of allowed customers for specified class (-1 means infinity)
-
getRegionClassMemorySize
Gets the memory size constraint for a blocking region and a class- Specified by:
getRegionClassMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- maximum size of allowed memory for specified class (-1 means infinity)
-
setRegionClassMemorySize
Sets the memory size constraint for a blocking region and a class- Specified by:
setRegionClassMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classmaxMemory- maximum size of allowed memory for specified class (-1 means infinity)
-
getRegionClassDropRule
Gets the drop rule for a blocking region and a class- Specified by:
getRegionClassDropRulein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- true if jobs of specified class can be dropped, false otherwise
-
setRegionClassDropRule
Sets the drop rule for a blocking region and a class- Specified by:
setRegionClassDropRulein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classdrop- true if jobs of specified class can be dropped, false otherwise
-
getRegionClassWeight
Gets the weight of each job for a blocking region and a class- Specified by:
getRegionClassWeightin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- weight of each job for specified class
-
setRegionClassWeight
Sets the weight of each job for a blocking region and a class- Specified by:
setRegionClassWeightin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classweight- weight of each job for specified class
-
getRegionClassSize
Gets the size of each job for a blocking region and a class- Specified by:
getRegionClassSizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- size of each job for specified class
-
setRegionClassSize
Sets the size of each job for a blocking region and a class- Specified by:
setRegionClassSizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classsize- size of each job for specified class
-
getRegionClassSoftDeadline
Description copied from interface:BlockingRegionDefinitionGets the soft deadline of each job for a blocking region and a class- Specified by:
getRegionClassSoftDeadlinein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for class- Returns:
- soft deadline of each job for specified class
-
setRegionClassSoftDeadline
Description copied from interface:BlockingRegionDefinitionSets the soft deadline of each job for a blocking region and a class- Specified by:
setRegionClassSoftDeadlinein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionclassKey- search's key for classsoftDeadline- soft deadline of each job for specified class
-
canRegionStationBeAdded
Tells if a station can be added to a blocking region (all the stations that create or destroy jobs cannot be added)- Specified by:
canRegionStationBeAddedin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionstationKey- search's key for station- Returns:
- true if the station can be added to specified region
-
canStationTypeBeBlocked
Tells if a station of a given type can be added to a blocking region (all the stations that create or destroy jobs cannot be added)- Parameters:
stationType- type of station to be added- Returns:
- true if a station of that type can be added, false otherwise
-
addRegionStation
Adds a station to a blocking region- Specified by:
addRegionStationin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionstationKey- search's key for station- Returns:
- true if the station has been added to specified region
-
removeRegionStation
Removes a station from a blocking region- Specified by:
removeRegionStationin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionstationKey- search's key for station
-
getBlockingRegionStations
Returns a set of all the stations in a blocking region- Specified by:
getBlockingRegionStationsin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- a set of all the stations in specified region
-
getStationBlockingRegion
Gets the blocking region of a station- Specified by:
getStationBlockingRegionin interfaceBlockingRegionDefinition- Parameters:
stationKey- search's key for station- Returns:
- search's key for region or null if it is undefined
-
getBlockableStationKeys
Gets a vector of stations that can be added to a blocking region- Specified by:
getBlockableStationKeysin interfaceBlockingRegionDefinition- Returns:
- a vector of stations that can be added to a blocking region
-
addBlockingDetails
Adds blocking region details, given the search key -
deleteBlockingDetails
Deletes blocking region details, given the search key -
addBlockingDetailsForClass
Adds blocking region details for a class, given the search key -
deleteBlockingDetailsForClass
Deletes blocking region details for a class, given the search key -
addRegionGroup
Adds a new group to a blocking region- Specified by:
addRegionGroupin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionname- name of the new group
-
deleteRegionGroup
Deletes a group from a blocking region- Specified by:
deleteRegionGroupin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group
-
deleteAllRegionGroups
Deletes all the groups from a blocking region- Specified by:
deleteAllRegionGroupsin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region
-
getRegionGroupList
Returns a list of the group data for a blocking region- Specified by:
getRegionGroupListin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for region- Returns:
- a list of the group data for specified region
-
getRegionGroupName
Gets the name of a group for a blocking region- Specified by:
getRegionGroupNamein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group- Returns:
- name of the group
-
setRegionGroupName
Sets the name of a group for a blocking region- Specified by:
setRegionGroupNamein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for groupname- name of the group
-
getRegionGroupCustomerConstraint
Gets the customer number constraint for a blocking region and a group- Specified by:
getRegionGroupCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group- Returns:
- maximum number of allowed customers for specified group (-1 means infinity)
-
setRegionGroupCustomerConstraint
Sets the customer number constraint for a blocking region and a group- Specified by:
setRegionGroupCustomerConstraintin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for groupmaxJobs- maximum number of allowed customers for specified group (-1 means infinity)
-
getRegionGroupMemorySize
Gets the memory size constraint for a blocking region and a group- Specified by:
getRegionGroupMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group- Returns:
- maximum size of allowed memory for specified group (-1 means infinity)
-
setRegionGroupMemorySize
Sets the memory size constraint for a blocking region and a group- Specified by:
setRegionGroupMemorySizein interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for groupmaxMemory- maximum size of allowed memory for specified group (-1 means infinity)
-
addClassIntoRegionGroup
Adds a class to a group for a blocking region- Specified by:
addClassIntoRegionGroupin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for groupclassKey- search's key for class
-
removeClassFromRegionGroup
Removes a class from a group for a blocking region- Specified by:
removeClassFromRegionGroupin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for groupclassKey- search's key for class
-
removeAllClassesFromRegionGroup
Removes all the classes from a group for a blocking region- Specified by:
removeAllClassesFromRegionGroupin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group
-
getRegionGroupClassList
Returns a list of classes in a group for a blocking region- Specified by:
getRegionGroupClassListin interfaceBlockingRegionDefinition- Parameters:
regionKey- search's key for regionindex- indexing number for group- Returns:
- a list of classes in specified group
-
getTotalClosedClassPopulation
public int getTotalClosedClassPopulation()Returns total population of closed classes- Specified by:
getTotalClosedClassPopulationin interfaceClassDefinition
-
getClassSwitchMatrix
Returns the cell (classInKey,classOutKey) of the class switch matrix for stationstationKey.- Specified by:
getClassSwitchMatrixin interfaceStationDefinition
-
setClassSwitchMatrix
public void setClassSwitchMatrix(Object stationKey, Object classInKey, Object classOutKey, float value) Sets the cell (classInKey,classOutKey) of the class switch matrix for stationstationKey.- Specified by:
setClassSwitchMatrixin interfaceStationDefinition
-
getSemaphoreThreshold
Returns the threshold for semaphorestationKeyand classclassKey.- Specified by:
getSemaphoreThresholdin interfaceStationDefinition
-
setSemaphoreThreshold
Sets the threshold for semaphorestationKeyand classclassKey.- Specified by:
setSemaphoreThresholdin interfaceStationDefinition
-
getTransitionModeListSize
Returns the size of the mode list for transitionstationKey.- Specified by:
getTransitionModeListSizein interfaceStationDefinition
-
getServerTypeKey
Description copied from interface:StationDefinitionThis method returns server type key given name and its station- Specified by:
getServerTypeKeyin interfaceStationDefinition
-
setStationSchedulingPolicy
Description copied from interface:StationDefinitionThis method sets scheduling policy of a station- Specified by:
setStationSchedulingPolicyin interfaceStationDefinition
-
getStationSchedulingPolicy
Description copied from interface:StationDefinitionThis method returns scheduling policy of a station- Specified by:
getStationSchedulingPolicyin interfaceStationDefinition
-
getServerType
Description copied from interface:StationDefinitionThis method returns Server Type given its key- Specified by:
getServerTypein interfaceStationDefinition
-
isServerTypeKey
Description copied from interface:StationDefinitionThis method returns true if it is a serverTypeKey- Specified by:
isServerTypeKeyin interfaceStationDefinition
-
getServerTypes
Description copied from interface:StationDefinitionThis method returns all server types of station- Specified by:
getServerTypesin interfaceStationDefinition
-
updateServerTypeIds
-
getNumberOfDifferentServerTypes
Description copied from interface:StationDefinitionThis method returns the number of different server types- Specified by:
getNumberOfDifferentServerTypesin interfaceStationDefinition
-
getInfoForServerType
Description copied from interface:StationDefinitionThis method returns a serverType given its station key and its order amongst the server types of that station- Specified by:
getInfoForServerTypein interfaceStationDefinition
-
getServerTypeStationName
Description copied from interface:StationDefinitionThis method returns a server type name with respect to its station given its key- Specified by:
getServerTypeStationNamein interfaceSimulationDefinition- Specified by:
getServerTypeStationNamein interfaceStationDefinition
-
addServerType
Description copied from interface:StationDefinitionThis method adds a server type- Specified by:
addServerTypein interfaceStationDefinition
-
addServerType
-
deleteServerType
Description copied from interface:StationDefinitionThis method deletes a server type- Specified by:
deleteServerTypein interfaceStationDefinition
-
updateNumOfServers
Description copied from interface:StationDefinitionThis method updates number of servers of different server types in station- Specified by:
updateNumOfServersin interfaceStationDefinition
-
getServerTypeNames
Description copied from interface:StationDefinitionThis method returns the names of different server types- Specified by:
getServerTypeNamesin interfaceStationDefinition
-
getHeterogeneousServersEnabled
- Specified by:
getHeterogeneousServersEnabledin interfaceStationDefinition
-
setHeterogeneousServersEnabled
- Specified by:
setHeterogeneousServersEnabledin interfaceStationDefinition
-
setStationVacationPolicy
- Specified by:
setStationVacationPolicyin interfaceStationDefinition
-
getStationVacationPolicy
- Specified by:
getStationVacationPolicyin interfaceStationDefinition
-
getStationVacationParameters
- Specified by:
getStationVacationParametersin interfaceStationDefinition
-
addTransitionMode
Adds a new mode for transitionstationKey.- Specified by:
addTransitionModein interfaceStationDefinition
-
deleteTransitionMode
Deletes a mode for transitionstationKey.- Specified by:
deleteTransitionModein interfaceStationDefinition
-
getTransitionModeName
Returns the name of modemodeIndexfor transitionstationKey.- Specified by:
getTransitionModeNamein interfaceStationDefinition
-
getAllTransitionModeNames
Returns the names of all the modes for transitionstationKey.- Specified by:
getAllTransitionModeNamesin interfaceStationDefinition
-
setTransitionModeName
Sets the name of modemodeIndexfor transitionstationKey.- Specified by:
setTransitionModeNamein interfaceStationDefinition
-
getEnablingCondition
public Integer getEnablingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Returns the entry (stationInKey,classKey) of the enabling condition for transitionstationKeyand modemodeIndex.- Specified by:
getEnablingConditionin interfaceStationDefinition
-
setEnablingCondition
public void setEnablingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Sets the entry (stationInKey,classKey) of the enabling condition for transitionstationKeyand modemodeIndex.- Specified by:
setEnablingConditionin interfaceStationDefinition
-
getInhibitingCondition
public Integer getInhibitingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Returns the entry (stationInKey,classKey) of the inhibiting condition for transitionstationKeyand modemodeIndex.- Specified by:
getInhibitingConditionin interfaceStationDefinition
-
setInhibitingCondition
public void setInhibitingCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Sets the entry (stationInKey,classKey) of the inhibiting condition for transitionstationKeyand modemodeIndex.- Specified by:
setInhibitingConditionin interfaceStationDefinition
-
getResourceCondition
public Integer getResourceCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey) Description copied from interface:StationDefinitionReturns the entry (stationInKey,classKey) of the resource condition for serverstationKeyand modemodeIndex- Specified by:
getResourceConditionin interfaceStationDefinition
-
setResourceCondition
public void setResourceCondition(Object stationKey, int modeIndex, Object stationInKey, Object classKey, Integer value) Description copied from interface:StationDefinitionSets the entry (stationInKey,classKey) of the resource condition for serverstationKeyand modemodeIndex.- Specified by:
setResourceConditionin interfaceStationDefinition
-
getNumberOfServers
Returns the number of servers for transitionstationKeyand modemodeIndex.- Specified by:
getNumberOfServersin interfaceStationDefinition
-
setNumberOfServers
Sets the number of servers for transitionstationKeyand modemodeIndex.- Specified by:
setNumberOfServersin interfaceStationDefinition
-
getFiringTimeDistribution
Returns the firing time distribution for transitionstationKeyand modemodeIndex.- Specified by:
getFiringTimeDistributionin interfaceStationDefinition
-
setFiringTimeDistribution
Sets the firing time distribution for transitionstationKeyand modemodeIndex.- Specified by:
setFiringTimeDistributionin interfaceStationDefinition
-
getFiringPriority
Returns the firing priority for transitionstationKeyand modemodeIndex.- Specified by:
getFiringPriorityin interfaceStationDefinition
-
setFiringPriority
Sets the firing priority for transitionstationKeyand modemodeIndex.- Specified by:
setFiringPriorityin interfaceStationDefinition
-
getFiringWeight
Returns the firing weight for transitionstationKeyand modemodeIndex.- Specified by:
getFiringWeightin interfaceStationDefinition
-
setFiringWeight
Sets the firing weight for transitionstationKeyand modemodeIndex.- Specified by:
setFiringWeightin interfaceStationDefinition
-
getFiringOutcome
public Integer getFiringOutcome(Object stationKey, int modeIndex, Object stationOutKey, Object classKey) Returns the entry (stationOutKey,classKey) of the firing outcome for transitionstationKeyand modemodeIndex.- Specified by:
getFiringOutcomein interfaceStationDefinition
-
setFiringOutcome
public void setFiringOutcome(Object stationKey, int modeIndex, Object stationOutKey, Object classKey, Integer value) Sets the entry (stationOutKey,classKey) of the firing outcome for transitionstationKeyand modemodeIndex.- Specified by:
setFiringOutcomein interfaceStationDefinition
-
getUniqueClassName
-
getUniqueStationName
-
getUniqueRegionName
-
getUniqueTransitionModeName
-
getWhatIfParallelism
Description copied from interface:SimulationDefinitionReturns the number of simulations to be run in parallel during what if analysis.- Specified by:
getWhatIfParallelismin interfaceSimulationDefinition- Returns:
- the number of simulations to be run in parallel during what if analysis.
-