Newer
Older
* @desc Test System module for ITS V2G
*
*/
module LibItsV2G_TestSystem {
// LibCommon
import from LibCommon_Time {modulepar all};
import from LibCommon_Sync all;
// LibIts
import from LibItsCommon_TestSystem all;
import from LibItsV2G_TypesAndValues all;
//XSD
import from iso_15118_2_2010_MsgDef all;
import from iso_15118_2_2010_MsgDataTypes all;
/**
* @desc Adapter control port
*/
type port AdapterControlPort message {
out
AcV2Gprimitive;
in
AcV2Gresponse;
} // end AdapterControlPort
/**
* @desc Upper Tester port
*/
type port UpperTesterPort message {
out
UtInitialize, UtTrigger, UtCheck;
in
UtResult;
} // end UpperTesterPort
} // end portDefinitions
group interfacePorts {
group v2gApplicationLayerPorts {
*/
type port V2Gport message {
in V2Gind;
out V2Greq;
} // end V2Gport
} // End of group v2gApplicationLayerPorts
} // End of group interfacePorts
group componentDefinitions {
/**
* @desc ITS System Adapter
*/
type component ItsV2Gsystem {
port UpperTesterPort utPort;
// NT1 ports
port V2Gport v2gPort;
} // end component ItsAdapter
} // End of group componentDefinitions
/**
* @desc Test component for ITS V2G Application layer
*/
type component ItsV2G extends ItsBaseComponent {
port UpperTesterPort utPort;
timer tc_v2g_secc_sequenceTimeout := c_v2g_seccSequenceTimeout * 0.95;
timer tc_v2g_evcc_sequenceTimeout := c_v2g_evccSequenceTimeout * 0.95;
// Global variables E X A M P L E
var sessionIDType_TYPE vc_sId;
var evccIDType_TYPE vc_evccId;
var V2Gind vc_v2gIndMessage;
} // End of component ItsV2G
group v2gApplicationLayerPrimitives {
type union V2Gind {
V2G_Message v2gIn,
Sdp_Message sdpIn
type union V2Greq {
V2G_Message v2gOut,
Sdp_Message sdpOut
} // End of group v2gApplicationLayerPrimitives
with {
encode "LibIts_Interface"
} // end interfacePrimitives
} // End of module LibItsV2G_TestSystem