Interface JmodelClassDefinition

All Superinterfaces:
ClassDefinition
All Known Implementing Classes:
JSimGraphModel

public interface JmodelClassDefinition extends ClassDefinition

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 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:
      addClass in interface ClassDefinition
      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.
      Specified by:
      deleteClass in interface ClassDefinition
    • getClassColor

      Color getClassColor(Object key)
      Returns color of the class, given the search key.
    • setClassColor

      void setClassColor(Object key, Color color)
      Sets color of the class, given the search key.
    • serializeClass

      Object serializeClass(Object classKey)
      Returns serialized form of a class.
      Parameters:
      classKey - search key for the class.
      Returns:
      serialized form of the class.
    • deserializeClass

      Object deserializeClass(Object Class)
      Inserts a new class according to its serialized form.
      Parameters:
      Class - serialized form of the new class.
      Returns:
      search key for the new class.