Interface JmodelClassDefinition
- All Superinterfaces:
ClassDefinition
- All Known Implementing Classes:
JSimGraphModel
Title: Jmodel Class Definition Interface
Description: This interface provides methods for editing classes for JMODEL models. It actually extends JSIM ClassDefinition interface to provide a compatibility layer.
- Author:
- Bertoli Marco Date: 14-giu-2005 Time: 9.44.32
-
Method Summary
Modifier and TypeMethodDescriptionaddClass()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.voiddeleteClass(Object key) Deletes a class from the model, given the search key.deserializeClass(Object Class) Inserts a new class according to its serialized form.getClassColor(Object key) Returns color of the class, given the search key.serializeClass(Object classKey) Returns serialized form of a class.voidsetClassColor(Object key, Color color) Sets color of the class, given the search key.Methods inherited from interface ClassDefinition
getClassByName, getClassDistribution, getClassKeys, getClassName, getClassPopulation, getClassPriority, getClassRefStation, getClassSoftDeadline, getClassType, getClosedClassKeys, getOpenClassKeys, getTotalClosedClassPopulation, setClassDistribution, setClassName, setClassPopulation, setClassPriority, setClassRefStation, setClassSoftDeadline, setClassType
-
Method Details
-
addClass
Object addClass()Adds a new class to the model and sets all the parameters by default.- Returns:
- search key for the new class.
-
addClass
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- 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
-
getClassColor
-
setClassColor
-
serializeClass
-
deserializeClass
-