Class ModelConverter

java.lang.Object
common.definitions.ModelConverter

public class ModelConverter extends Object

Title: Model Converter

Description: This class provides methods to convert models between JMODEL, JSIM, JMVA and JABA.

Author:
Bertoli Marco Date: 20-feb-2006 Time: 12.23.12
  • Constructor Details

    • ModelConverter

      public ModelConverter()
  • Method Details

    • convertJMVAtoJSIM

      public static List<String> convertJMVAtoJSIM(ExactModel input, CommonModel output)
      Converts a JMVA model to JSIM. Conversion is performed by equalling service times in every LI station (adjusting visits) and creating FCFS queues with exponential service time distribution.
      Visits are converted with routing probability, to maintain correctness of computed response time values a "virtual" node called RefStation is added as a reference station for closed classes and routed when (in terms of mean values) a single visit is performed in the system. (as visits values are scaled to compute probability distribution).
      Note that a single router node, called "Router" is used to route jobs through the entire network, simplifying its topology. Stations (LI, LD and Delays) are connected in a parallel form with the Router.
      Parameters:
      input - JMVA model (read only access)
      output - target JSIM or JMODEL model. This is expected to be empty
      Returns:
      a List with all found warnings during conversion (in String format).
    • convertJSIMtoJMVA

      public static List<String> convertJSIMtoJMVA(CommonModel input, ExactModel output)
      Converts a JSIM model to JMVA. Visits are computed from topology. To work well this method requires:
      • Reference station to be set for each class
      • Every station must have at least one incoming connection and one outgoing connection
      • Routing strategy have to be ProbabilityRouting or RandomRouting
      Parameters:
      input - JSIM model (read only)
      output - empty JMVA model (write)
      Returns:
      a vector that enumerates all conversion warnings and how they have been fixed