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 Details

    • getClassKeys

      Vector<Object> getClassKeys()
      This method returns the key set of all classes.
    • getOpenClassKeys

      Vector<Object> getOpenClassKeys()
      This method returns the key set of open classes.
    • getClosedClassKeys

      Vector<Object> getClosedClassKeys()
      This method returns the key set of closed classes.
    • getClassName

      String getClassName(Object key)
      Returns name of the class, given the search key.
    • setClassName

      void setClassName(Object key, String name)
      Sets name of the class, given the search key.
    • getClassType

      int getClassType(Object key)
      Returns type of the class, given the search key.
    • setClassType

      void setClassType(Object key, int type)
      Sets type of the class, given the search key.
    • getClassPriority

      Integer getClassPriority(Object key)
      Returns priority of the class, given the search key.
    • setClassPriority

      void setClassPriority(Object key, Integer priority)
      Sets priority of the class, given the search key.
    • getClassSoftDeadline

      Double getClassSoftDeadline(Object key)
      Returns soft deadline of the class, given the search key.
    • setClassSoftDeadline

      void setClassSoftDeadline(Object key, Double softDeadline)
      Sets soft deadline of the class, given the search key.
    • getClassPopulation

      Integer getClassPopulation(Object key)
      Returns population of the class, given the search key.
    • setClassPopulation

      void setClassPopulation(Object key, Integer population)
      Sets population of the class, given the search key.
    • getClassDistribution

      Object getClassDistribution(Object key)
      Returns inter-arrival time distribution of the class, given the search key.
    • setClassDistribution

      void setClassDistribution(Object key, Object distribution)
      Sets inter-arrival time distribution of the class, given the search key.
    • getClassRefStation

      Object getClassRefStation(Object key)
      Returns reference station of a class, given the search key.
    • setClassRefStation

      void setClassRefStation(Object key, Object refStation)
      Sets reference station of a class, given the search key.
    • 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

      void deleteClass(Object key)
      Deletes a class from the model, given the search key.
    • getClassByName

      Object getClassByName(String className)
      Returns the search key for the class, given the class name.
    • getTotalClosedClassPopulation

      int getTotalClosedClassPopulation()
      Returns total population of closed classes