Class JSimGraphModel
java.lang.Object
common.definitions.CommonModel
jsimgraph.definitions.JSimGraphModel
- All Implemented Interfaces:
CommonConstants, BlockingRegionDefinition, ClassDefinition, GraphRefreshable, SimulationDefinition, StationDefinition, JmodelBlockingRegionDefinition, JmodelClassDefinition, JmodelStationDefinition, JSimGraphConstants, EngineNodeConstants
public class JSimGraphModel
extends CommonModel
implements JmodelClassDefinition, JmodelStationDefinition, JmodelBlockingRegionDefinition, JSimGraphConstants, GraphRefreshable
Title: JMODEL-Model
Description: Main data structure used to store model definition data, to save and load model and to compile xml files for the simulator and as a bridge to connect JMODEL with JSIM and JMVA
- Author:
- Bertoli Marco Date: 2-giu-2005 Time: 10.27.54 Modified by Francesco D'Aquino 11/11/2005
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassObject returned when asking for SerializedBlockingRegion.classObject returned when asking for SerializedClass.classObject returned when asking for SerializedStation.Nested classes/interfaces inherited from class CommonModel
CommonModel.BlockingClassData, CommonModel.BlockingGroupData, CommonModel.BlockingRegionData, CommonModel.ClassData, CommonModel.Connection, CommonModel.KeyComparator, CommonModel.LoggerGlobalParameters, CommonModel.MeasureData, CommonModel.StationClassData, CommonModel.StationData, CommonModel.TransitionModeData -
Field Summary
FieldsFields inherited from class CommonModel
blockableKeyset, blockingDataHM, blockingDetailsBDM, blockingRegionsKeyset, classDataHM, classesKeyset, classSwitchesKeyset, closedClassesKeyset, connectionsBDM, debugLog, delaysKeyset, disableStatistic, forksKeyset, incrementalKey, joinsKeyset, keyComparator, loggerGlbParams, loggersKeyset, maxDuration, maxEvents, maxSamples, maxSimulatedTime, measureDataHM, measuresKeyset, openClassesKeyset, placesKeyset, pollingInterval, preloadableKeyset, results, routersKeyset, save, scalersKeyset, seed, semaphoresKeyset, serversKeyset, serverTypeDistributionsBDM, serverTypesHM, sinksKeyset, sourcesKeyset, stationDataHM, stationDetailsBDM, stationsKeyset, terminalsKeyset, transitionsKeyset, useRandomSeedFields 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 JSimGraphConstants
COLOR_NAMEFields 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
ConstructorsConstructorDescriptionJSimGraphModel(Mediator mediator) Default constructor, creates a new instance ofJMODELModel. -
Method Summary
Modifier and TypeMethodDescriptionAdds a new blocking region to the model.addClass()Adds a new class to the model and sets all the parameters by default.addClass(String name, int type, Integer priority, Double softDeadline, Integer population, Object distribution) Adds a new class to the model and sets all the parameters at once.addStation(Object station) Adds a new station with name and type from its serialized form.addStation(String type) Adds a new station to the model, given the station type.voiddeleteAbsoluteControlPoints(Object sourceKey, Object targetKey) Delete absolute value of a connection, given the search key.voiddeleteClass(Object key) Deletes a class from the model, given the search key.voiddeleteConnectionShape(Object sourceKey, Object targetKey) Delete shape of a connection, given the source and target keys.voiddeleteStation(Object key) Deletes a station from the model, given the search key.deserializeBlockingRegion(Object region, Map<Object, Object> classes) Inserts a new blocking region according to its serialized form.deserializeClass(Object Class) Inserts a new class according to its serialized form.getAbsoluteControlPoints(Object sourceKey, Object targetKey) Returns shape of a connection, given the search key.getClassColor(Object key) Returns color of the class, given the search key.intgetConnectionEnd(Object sourceKey, Object targetKey) Gets the end of a connection, given the source and target keys.getConnectionShape(Object sourceKey, Object targetKey) Returns shape of a connection, given the source and target keys.getConnectionShapesFromSource(Object sourceKey) Returns shapes of connections, given the source key.getConnectionShapesFromTarget(Object targetKey) Returns shapes of connections, given the target key.Returns a new color.getStationIcon(Object key) Gets the icon of a station, given the search key.getStationPosition(Object key) Returns position of the station, given the search key.booleanReturns true if a connection shape is defined in the model.booleanhasConnectionShape(Object sourceKey, Object targetKey) Returns true if a connection shape exists, given the source and target keys.booleanTells if queue animation is enabledvoidLoadStation(Object station, Object key, Map<Object, Object> classes, Map<Object, Object> stationKeyMap) Loads parameters of a station from its serialized form.previewStationName(String type) Returns name of the next station, given the station type.voidRefreshes the graph component.Returns serialized form of a blocking region.serializeClass(Object key) Returns serialized form of a class.serializeStation(Object key) Returns serialized form of a station.voidsetAbsoluteControlPoints(Object sourceKey, Object targetKey, ArrayList<Point2D> points) Sets absolute value of a connection, given the search key.voidsetAnimationEnabled(boolean enabled) Enable / disable queue animationvoidsetClassColor(Object key, Color color) Sets color of the class, given the search key.voidsetClassType(Object key, int type) Sets type of the class, given the search key.voidsetConnectionEnd(Object sourceKey, Object targetKey, int end) Sets the end of a connection, given the source and target keys.voidsetConnectionShape(Object sourceKey, Object targetKey, JMTPath path) Sets shape of a connection, given the source and target keys.voidsetStationIcon(Object key, String icon) Sets the icon of a transition, given the search key.voidsetStationPosition(Object key, JMTPoint position) Sets position of the station, given the search key.Methods inherited from class CommonModel
addBlockingDetails, addBlockingDetailsForClass, addBlockingRegion, addClassIntoRegionGroup, addMeasure, addMeasure, addRegionGroup, addRegionStation, addServerType, addServerType, addStation, addStationDetails, addStationDetailsForClass, addTransitionMode, areConnectable, areConnected, canBeConnected, canRegionStationBeAdded, canStationTypeBeBlocked, containsSimulationResults, deleteAllRegionGroups, deleteBlockingDetails, deleteBlockingDetailsForClass, deleteBlockingRegion, deleteRegionGroup, deleteServerType, deleteStationDetails, deleteStationDetailsForClass, deleteTransitionMode, getAllTransitionModeNames, getBackwardConnectedPlaces, getBackwardConnections, getBlockableStationKeys, getBlockingRegionStations, getClassByName, getClassDistribution, getClassKeys, getClassName, getClassPopulation, getClassPriority, getClassRefStation, getClassSoftDeadline, getClassStationSoftDeadline, getClassSwitchMatrix, getClassType, getClosedClassKeys, getDelayOffTimeDistribution, getDelayOffTimesEnabled, getDisableStatistic, getDropRule, getEnablingCondition, getFCRegionKeys, getFiringOutcome, getFiringPriority, getFiringTimeDistribution, getFiringWeight, getFJKeys, getForkBlock, getForkStrategy, getForwardConnections, getHeterogeneousServersEnabled, getImpatienceParameter, getImpatienceType, getInfoForServerType, getInhibitingCondition, getIsSimplifiedFork, getJoinStrategy, getLoggingGlbParameter, getLoggingParameters, getMaximumDuration, getMaxSimulatedTime, getMaxSimulationEvents, getMaxSimulationSamples, getMeasureAlpha, getMeasureClass, getMeasureKeys, getMeasureLog, getMeasurePrecision, getMeasureServerTypeKey, getMeasureStation, getMeasureType, getNumberOfDifferentServerTypes, getNumberOfServers, getOpenClassKeys, getParametricAnalysisModel, getPollingInterval, getPollingSwitchoverDistribution, getPreloadedJobs, getPreloadedJobsNumber, getQuantumSize, getQuantumSwitchoverTime, getQueueCapacity, getQueueStrategy, getRegionClassCustomerConstraint, getRegionClassDropRule, getRegionClassMemorySize, getRegionClassSize, getRegionClassSoftDeadline, getRegionClassWeight, getRegionCustomerConstraint, getRegionGroupClassList, getRegionGroupCustomerConstraint, getRegionGroupList, getRegionGroupMemorySize, getRegionGroupName, getRegionKeys, getRegionMemorySize, getRegionName, getRegionType, getResourceCondition, getRetrialDistribution, getRoutingStrategy, getSemaphoreStrategy, getSemaphoreThreshold, getServerNumRequired, getServerType, getServerTypeKey, getServerTypeKeys, getServerTypeNames, getServerTypes, getServerTypeStationName, getServiceTimeDistribution, getServiceTimeDistribution, getServiceWeight, getSetupTimeDistribution, getSimulationResults, getSimulationSeed, getStationBlockingRegion, getStationByName, getStationKeys, getStationKeysClassSwitch, getStationKeysDelay, getStationKeysFork, getStationKeysJoin, getStationKeysLogger, getStationKeysNoSourceSink, getStationKeysPlace, getStationKeysPreloadable, getStationKeysRefStation, getStationKeysRouter, getStationKeysScaler, getStationKeysSemaphore, getStationKeysServer, getStationKeysSink, getStationKeysSource, getStationKeysTerminal, getStationKeysTransition, getStationMaxRunningJobs, getStationName, getStationNumberOfServers, getStationPollingServerKValue, getStationPollingServerType, getStationQueueCapacity, getStationQueueStrategy, getStationRegionKeysNoSourceSink, getStationSchedulingPolicy, getStationTotalCapacity, getStationType, getStationVacationParameters, getStationVacationPolicy, getSwitchoverTimeDistribution, getSwitchoverTimesEnabled, getTotalClosedClassPopulation, getTransitionModeListSize, getTransitionModeName, getUniqueClassName, getUniqueRegionName, getUniqueStationName, getUniqueTransitionModeName, getUseRandomSeed, getWhatIfParallelism, isFCRMeasure, isFJMeasure, isGlobalMeasure, isParametricAnalysisEnabled, isServerTypeKey, isSinkMeasure, isStationTypePreloadable, manageJobs, manageProbabilities, normalizeClassSwitchProbabilities, normalizeForkProbabilities, normalizeRoutingProbabilities, removeAllClassesFromRegionGroup, removeClassFromRegionGroup, removeMeasure, removeRegionStation, resetImpatience, resetSaveState, setClassDistribution, setClassName, setClassPopulation, setClassPriority, setClassRefStation, setClassSoftDeadline, setClassStationSoftDeadline, setClassSwitchMatrix, setConnected, setDelayOffTimeDistribution, setDelayOffTimesEnabled, setDisableStatistic, setDropRule, setEnablingCondition, setFiringOutcome, setFiringPriority, setFiringTimeDistribution, setFiringWeight, setForkBlock, setForkStrategy, setHeterogeneousServersEnabled, setImpatienceParameter, setImpatienceType, setInhibitingCondition, setIsSimplifiedFork, setJoinStrategy, setLoggingGlbParameter, setLoggingParameters, setMaximumDuration, setMaxSimulatedTime, setMaxSimulationEvents, setMaxSimulationSamples, setMeasureAlpha, setMeasureClass, setMeasureLog, setMeasurePrecision, setMeasureServerTypeKey, setMeasureStation, setMeasureType, setNumberOfServers, setParametricAnalysisEnabled, setParametricAnalysisModel, setPollingInterval, setPollingSwitchoverDistribution, setPreloadedJobs, setQuantumSize, setQuantumSwitchoverTime, setQueueCapacity, setQueueStrategy, setRegionClassCustomerConstraint, setRegionClassDropRule, setRegionClassMemorySize, setRegionClassSize, setRegionClassSoftDeadline, setRegionClassWeight, setRegionCustomerConstraint, setRegionGroupCustomerConstraint, setRegionGroupMemorySize, setRegionGroupName, setRegionMemorySize, setRegionName, setRegionType, setResourceCondition, setRetrialDistribution, setRoutingStrategy, setSaveChanged, setSemaphoreStrategy, setSemaphoreThreshold, setServerNumRequired, setServiceTimeDistribution, setServiceTimeDistribution, setServiceWeight, setSetupTimeDistribution, setSimulationResults, setSimulationSeed, setStationMaxRunningJobs, setStationName, setStationNumberOfServers, setStationPollingServerKValue, setStationPollingServerType, setStationQueueCapacity, setStationQueueStrategy, setStationSchedulingPolicy, setStationTotalCapacity, setStationType, setStationVacationPolicy, setSwitchoverTimeDistribution, setSwitchoverTimesEnabled, setTransitionModeName, setUseRandomSeed, toBeSaved, updateBalkingParameter, updateNumOfServers, updateServerTypeIdsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockingRegionDefinition
addBlockingRegion, addClassIntoRegionGroup, addRegionGroup, addRegionStation, canRegionStationBeAdded, deleteAllRegionGroups, deleteBlockingRegion, deleteRegionGroup, getBlockableStationKeys, getBlockingRegionStations, getRegionClassCustomerConstraint, getRegionClassDropRule, getRegionClassMemorySize, getRegionClassSize, getRegionClassSoftDeadline, getRegionClassWeight, getRegionCustomerConstraint, getRegionGroupClassList, getRegionGroupCustomerConstraint, getRegionGroupList, getRegionGroupMemorySize, getRegionGroupName, getRegionKeys, getRegionMemorySize, getRegionName, getRegionType, getStationBlockingRegion, removeAllClassesFromRegionGroup, removeClassFromRegionGroup, removeRegionStation, setRegionClassCustomerConstraint, setRegionClassDropRule, setRegionClassMemorySize, setRegionClassSize, setRegionClassSoftDeadline, setRegionClassWeight, setRegionCustomerConstraint, setRegionGroupCustomerConstraint, setRegionGroupMemorySize, setRegionGroupName, setRegionMemorySize, setRegionName, setRegionTypeMethods inherited from interface ClassDefinition
getClassByName, getClassDistribution, getClassKeys, getClassName, getClassPopulation, getClassPriority, getClassRefStation, getClassSoftDeadline, getClassType, getClosedClassKeys, getOpenClassKeys, getTotalClosedClassPopulation, setClassDistribution, setClassName, setClassPopulation, setClassPriority, setClassRefStation, setClassSoftDeadlineMethods inherited from interface StationDefinition
addServerType, addStation, addTransitionMode, areConnectable, areConnected, deleteServerType, deleteTransitionMode, getAllTransitionModeNames, getBackwardConnectedPlaces, getBackwardConnections, getClassStationSoftDeadline, getClassSwitchMatrix, getDelayOffTimeDistribution, getDelayOffTimesEnabled, getDropRule, getEnablingCondition, getFCRegionKeys, getFiringOutcome, getFiringPriority, getFiringTimeDistribution, getFiringWeight, getFJKeys, getForkBlock, getForkStrategy, getForwardConnections, getHeterogeneousServersEnabled, getImpatienceParameter, getImpatienceType, getInfoForServerType, getInhibitingCondition, getIsSimplifiedFork, getJoinStrategy, getLoggingGlbParameter, getLoggingParameters, getNumberOfDifferentServerTypes, getNumberOfServers, getPollingSwitchoverDistribution, getQuantumSize, getQuantumSwitchoverTime, getQueueCapacity, getQueueStrategy, getResourceCondition, getRetrialDistribution, getRoutingStrategy, getSemaphoreStrategy, getSemaphoreThreshold, getServerNumRequired, getServerType, getServerTypeKey, getServerTypeKeys, getServerTypeNames, getServerTypes, getServerTypeStationName, getServiceTimeDistribution, getServiceTimeDistribution, getServiceWeight, getSetupTimeDistribution, getStationByName, getStationKeys, getStationKeysClassSwitch, getStationKeysDelay, getStationKeysFork, getStationKeysJoin, getStationKeysLogger, getStationKeysNoSourceSink, getStationKeysPlace, getStationKeysPreloadable, getStationKeysRefStation, getStationKeysRouter, getStationKeysScaler, getStationKeysSemaphore, getStationKeysServer, getStationKeysSink, getStationKeysSource, getStationKeysTerminal, getStationKeysTransition, getStationMaxRunningJobs, getStationName, getStationNumberOfServers, getStationPollingServerKValue, getStationPollingServerType, getStationQueueCapacity, getStationQueueStrategy, getStationRegionKeysNoSourceSink, getStationSchedulingPolicy, getStationTotalCapacity, getStationType, getStationVacationParameters, getStationVacationPolicy, getSwitchoverTimeDistribution, getSwitchoverTimesEnabled, getTransitionModeListSize, getTransitionModeName, isServerTypeKey, manageProbabilities, normalizeClassSwitchProbabilities, normalizeForkProbabilities, normalizeRoutingProbabilities, resetImpatience, setClassStationSoftDeadline, setClassSwitchMatrix, setConnected, setDelayOffTimeDistribution, setDelayOffTimesEnabled, setDropRule, setEnablingCondition, setFiringOutcome, setFiringPriority, setFiringTimeDistribution, setFiringWeight, setForkBlock, setForkStrategy, setHeterogeneousServersEnabled, setImpatienceParameter, setImpatienceType, setInhibitingCondition, setIsSimplifiedFork, setJoinStrategy, setLoggingGlbParameter, setLoggingParameters, setNumberOfServers, setPollingSwitchoverDistribution, setQuantumSize, setQuantumSwitchoverTime, setQueueCapacity, setQueueStrategy, setResourceCondition, setRetrialDistribution, setRoutingStrategy, setSemaphoreStrategy, setSemaphoreThreshold, setServerNumRequired, setServiceTimeDistribution, setServiceTimeDistribution, setServiceWeight, setSetupTimeDistribution, setStationMaxRunningJobs, setStationName, setStationNumberOfServers, setStationPollingServerKValue, setStationPollingServerType, setStationQueueCapacity, setStationQueueStrategy, setStationSchedulingPolicy, setStationTotalCapacity, setStationType, setStationVacationPolicy, setSwitchoverTimeDistribution, setSwitchoverTimesEnabled, setTransitionModeName, updateBalkingParameter, updateNumOfServers
-
Field Details
-
mediator
-
objectNumber
-
classColor
-
stationPositions
-
connectionShapes
-
absoluteControlPoints
-
defaultColor
-
animationEnabled
protected boolean animationEnabled
-
-
Constructor Details
-
JSimGraphModel
Default constructor, creates a new instance ofJMODELModel.- Parameters:
mediator- reference to mediator.
-
-
Method Details
-
addClass
Adds a new class to the model and sets all the parameters by default.- Specified by:
addClassin interfaceJmodelClassDefinition- Returns:
- search key for the new class.
-
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 the parameters at once.- Specified by:
addClassin interfaceClassDefinition- Specified by:
addClassin interfaceJmodelClassDefinition- Overrides:
addClassin classCommonModel- 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- Specified by:
deleteClassin interfaceJmodelClassDefinition- Overrides:
deleteClassin classCommonModel
-
setClassType
Sets type of the class, given the search key.- Specified by:
setClassTypein interfaceClassDefinition- Overrides:
setClassTypein classCommonModel
-
getClassColor
Returns color of the class, given the search key.- Specified by:
getClassColorin interfaceJmodelClassDefinition
-
setClassColor
Sets color of the class, given the search key.- Specified by:
setClassColorin interfaceJmodelClassDefinition
-
getNewColor
Returns a new color. -
serializeClass
Returns serialized form of a class.- Specified by:
serializeClassin interfaceJmodelClassDefinition- Parameters:
key- search key for the class.- Returns:
- serialized form of the class.
-
deserializeClass
Inserts a new class according to its serialized form.- Specified by:
deserializeClassin interfaceJmodelClassDefinition- Parameters:
Class- serialized form of the new class.- Returns:
- search key for the new class.
-
addStation
Adds a new station to the model, given the station type.- Specified by:
addStationin interfaceJmodelStationDefinition- Parameters:
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 interfaceJmodelStationDefinition- Specified by:
deleteStationin interfaceStationDefinition- Overrides:
deleteStationin classCommonModel
-
previewStationName
Returns name of the next station, given the station type.- Specified by:
previewStationNamein interfaceJmodelStationDefinition
-
setStationPosition
Sets position of the station, given the search key.- Specified by:
setStationPositionin interfaceJmodelStationDefinition
-
getStationPosition
Returns position of the station, given the search key.- Specified by:
getStationPositionin interfaceJmodelStationDefinition
-
setConnectionShape
-
deleteConnectionShape
-
getConnectionShape
-
getConnectionShapesFromSource
-
getConnectionShapesFromTarget
-
hasConnectionShape
-
hasConnectionShape
public boolean hasConnectionShape()Returns true if a connection shape is defined in the model. -
getStationIcon
Gets the icon of a station, given the search key.- Specified by:
getStationIconin interfaceGraphRefreshable
-
setStationIcon
Sets the icon of a transition, given the search key.- Specified by:
setStationIconin interfaceGraphRefreshable
-
getConnectionEnd
Gets the end of a connection, given the source and target keys.- Specified by:
getConnectionEndin interfaceGraphRefreshable
-
setConnectionEnd
Sets the end of a connection, given the source and target keys.- Specified by:
setConnectionEndin interfaceGraphRefreshable
-
refreshGraph
public void refreshGraph()Refreshes the graph component.- Specified by:
refreshGraphin interfaceGraphRefreshable
-
serializeStation
Returns serialized form of a station.- Specified by:
serializeStationin interfaceJmodelStationDefinition- Parameters:
key- search key for the station.- Returns:
- serialized form of the station.
-
addStation
Adds a new station with name and type from its serialized form.- Specified by:
addStationin interfaceJmodelStationDefinition- Parameters:
station- serialized form of the new station.- Returns:
- search key for the new station.
-
LoadStation
public void LoadStation(Object station, Object key, Map<Object, Object> classes, Map<Object, Object> stationKeyMap) Loads parameters of a station from its serialized form.- Specified by:
LoadStationin interfaceJmodelStationDefinition- Parameters:
station- serialized form of the station.key- search key for the station.classes- map of serialized forms of classes.stationKeyMap- map of search keys for stations.
-
addBlockingRegion
Adds a new blocking region to the model.- Specified by:
addBlockingRegionin interfaceJmodelBlockingRegionDefinition- Returns:
- search key for the new region.
-
serializeBlockingRegion
Returns serialized form of a blocking region.- Specified by:
serializeBlockingRegionin interfaceJmodelBlockingRegionDefinition- Parameters:
key- search key for the region.- Returns:
- serialized form of the region.
-
deserializeBlockingRegion
Inserts a new blocking region according to its serialized form.- Specified by:
deserializeBlockingRegionin interfaceJmodelBlockingRegionDefinition- Parameters:
region- serialized form of the new region.classes- map of serialized forms of classes.- Returns:
- search key for the new region.
-
isAnimationEnabled
public boolean isAnimationEnabled()Tells if queue animation is enabled- Specified by:
isAnimationEnabledin interfaceSimulationDefinition- Overrides:
isAnimationEnabledin classCommonModel- Returns:
- true if the animation is enabled
-
setAnimationEnabled
public void setAnimationEnabled(boolean enabled) Enable / disable queue animation- Specified by:
setAnimationEnabledin interfaceSimulationDefinition- Overrides:
setAnimationEnabledin classCommonModel- Parameters:
enabled- - set it to true to enable queue animation
-
setAbsoluteControlPoints
-
deleteAbsoluteControlPoints
-
getAbsoluteControlPoints
-