Interface ClassDefinition
- All Known Subinterfaces:
JmodelClassDefinition
- All Known Implementing Classes:
CommonModel, JSimGraphModel, JSIMModel
public interface ClassDefinition
Created by IntelliJ IDEA.
User: OrsotronIII
Date: 23-mag-2005
Time: 9.34.34
This interface provides methods for editation of model's classes details. In the implementing
class of this interface, model's userclasses must be accessed through a research key that must
be represented by a number. This gives possibility of a smarter implementation for search and
editing methods than a name-based search modality.
Modified by Francesco D'Aquino 21/11/2005
-
Method Summary
Modifier and TypeMethodDescriptionaddClass(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.voiddeleteClass(Object key) Deletes a class from the model, given the search key.getClassByName(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 a class, given the search key.Returns soft deadline of the class, given the search key.intgetClassType(Object key) Returns type of the class, given the search key.This method returns the key set of closed classes.This method returns the key set of open classes.intReturns total population of closed classesvoidsetClassDistribution(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 a class, given the search key.voidsetClassSoftDeadline(Object key, Double softDeadline) Sets soft deadline of the class, given the search key.voidsetClassType(Object key, int type) Sets type of the class, given the search key.
-
Method Details
-
getClassKeys
-
getOpenClassKeys
-
getClosedClassKeys
-
getClassName
-
setClassName
-
getClassType
Returns type of the class, given the search key. -
setClassType
Sets type of the class, given the search key. -
getClassPriority
-
setClassPriority
-
getClassSoftDeadline
-
setClassSoftDeadline
-
getClassPopulation
-
setClassPopulation
-
getClassDistribution
-
setClassDistribution
-
getClassRefStation
-
setClassRefStation
-
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 class parameters at once.- 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. -
getClassByName
-
getTotalClosedClassPopulation
int getTotalClosedClassPopulation()Returns total population of closed classes
-