Skip to content
Snippets Groups Projects
Config.tdltx 1.62 KiB
Newer Older
/*
 * This is an example package
 */
Package Config {
    Import all from Standard
    Import all from HTTP
    Import all from HTTP.MessageBased
    Import all from generated_from_step3body_json
    Import all from generated_from_step2body_json
    //example type
    Type float
    //define additional elements here
    
    Type message
    
    Message Gate MPI accepts message, JSON_step2body_json, JSON, Response, Request, String
    
    Component DomainController {
        gate MPI mpi
    }

    Component Postman {
        variable Response response
        variable Integer i
        timer t
        gate MPI mpi
    }

    Component NE {
        gate MPI mpi //?
    }

    Component OpticalPatchPanel {
        gate MPI mpi //?
    }

    Component TrafficGeneratorAndAnalyser {
        gate MPI mpi //?
    }

    Configuration GenericTestArchitecture {
        Postman pm as Tester,
        DomainController M1 as SUT,
        DomainController M2 as SUT,
        //...
        connect M1::mpi to pm::mpi, //TODO: this should be fine
        connect M2::mpi to pm::mpi
        //...
    }

    Configuration TestLanArchitecture {
        Postman pm as Tester,
        DomainController X as SUT,
        //...
        connect X::mpi to pm::mpi
        //...
    }
    
    //Lots and lots of configurations that need to be 
    
    //Or are some of those configuraitons that are setup to be tested virtually?
    Configuration TREE_CFG {
        //Postman pm as Tester, 
        TrafficGeneratorAndAnalyser traffic as Tester,
        DomainController X as SUT,
        //,,,
        connect X::mpi to traffic::mpi
        //...
    }
    
    
}