Package jline.lang

Class ModelAdapter

  • All Implemented Interfaces:

    
    public class ModelAdapter
    
                        

    Static class to transform and adapt models, providing functionality for: - Creating tagged job models for response time analysis - Fork-join network transformations (formerly from FJ.java) - Model preprocessing and adaptation operations

    • Constructor Detail

      • ModelAdapter

        ModelAdapter()
    • Method Detail

      • tagChain

         static ModelAdapter.TaggedChainResult tagChain(Network model, Chain chain, JobClass jobclass, String suffix)

        Create a tagged version of a job chain for response time analysis

        Parameters:
        model - The original model
        chain - The chain to tag
        jobclass - The specific job class to tag (optional, defaults to first class in chain)
        suffix - The suffix to add to tagged class names (optional, defaults to ".
        Returns:

        TaggedChainResult containing the tagged model and tagged job class

      • ht

         static Ret.FJApprox ht(Network model)

        Heidelberger-Trivedi fork-join queueing network transformation. Transforms the queueing network containing a FJ subsystem into a queueing network without one. Fork nodes changed to Router nodes. Join nodes changed to Delay nodes. One artificial class is created for each parallel branch and for each class. Another delay is added to model the sojourn time of the original classes. -- This approach is derived by PHILIP HEIDELBERGER and KISHOR S. TRIVEDI in "Analytic Queueing Models for Programs with Internal Concurrency"

        Parameters:
        model - - the original network
        Returns:

        - queueing network with no FJ system, the class and the fork maps for the artificial classes, and the auxiliary delay map (each join node is mapped to a corresponding auxiliary delay).

      • mmt

         static Ret.FJApprox mmt(Network model, Matrix forkLambda)

        Fork-Join Transform approach to evaluate queueing networks including fork-join systems. An equivalent network is created where the fork nodes are replaced by routers, the join nodes are replaced by delays, and the parallelism induced by a fork-join system is simulated through the addition of artificial open customer classes.

        Parameters:
        model - - the original queueing network
        forkLambda - - the arrival rates of the artificial classes
        Returns:

        - the equivalent queueing network with the fork-join systems replaced with other nodes, a mapping of the artificial classes and their corresponding original classes, a mapping of the artificial classes and their FJ systems, and the fanout of each artificial class