Commit 96e1b05d authored by predusi's avatar predusi
Browse files

added the inter component communication cummunOBURSUPort.

parent 647e8118
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
module TraceParserSystem {
    /* @desc Path to file that holds the trace */
    modulepar charstring PX_TRACE_PATH:= "C:\Demo_Dump2.txt";
    //modulepar charstring PX_TRACE_PATH:= "C:\Demo_Dump2.txt";
    modulepar charstring PX_TRACE_PATH:= "C:\PowerLevel_OBUName_DutyCycle_RepNo.txt";
    /* @desc Maximum allowed number of empty uplink frames from the On Board Unit (OBU) */
    modulepar integer PX_MAX_NUM_EMPTY_UPLINK_FRAMES:= 100;
    
@@ -37,6 +38,10 @@ module TraceParserSystem {
    	inout LinkId, SyncCommand, NrOfEmptyMsg;
    }
    
    type port CommunPortOBURSUType message{
        inout PayloadStructure;
    }
    
    type component SystemType {
        port TraceCtrlPortType controlPort;
        port TraceMsgPortType msgPort;
@@ -45,6 +50,10 @@ module TraceParserSystem {
    type component MtcType {
        port TraceCtrlPortType controlPort;
        timer transactionTimer := 5.0 ;
        var charstring v_PowerLevel := "";
        var charstring v_OBUName := "";
        var charstring v_DutyCycle := "";
        var charstring v_RepNo := "";
    }

    /**
@@ -53,12 +62,14 @@ module TraceParserSystem {
    type component ObuType { //downLinkType
        port TraceMsgPortType obuPort;
        port CompPortType compPort;
        port CommunPortOBURSUType commmunOBURSUPort;
        timer transactionOBUTimer := 1.0 ;
    }
    
    type component RsuType { //upLinkType
        port TraceMsgPortType rsuPort;
        port CompPortType compPort;
        port CommunPortOBURSUType commmunOBURSUPort;
        timer transactionRSUTimer := 1.0 ;
    }