/* * @author STF 370 * @version $Id: LibIot_TestConfiguration.ttcn 16 2009-06-16 15:06:42Z pintar $ * @desc xxx. */ module LibIot_TestConfiguration { import from LibIot_TestInterface { type InterfaceMonitor, IotEquipmentUser, OracleClient, OracleServer, TestCoordinator; } /** * @desc connects the port of the monitor component to the * port of the test oracle and activates the default * @param p_monitor monitor component */ function f_cf_oracle_up(in OracleClient p_client) runs on OracleServer { connect(self:vPort, p_client:vPort); } /** * @desc deactivates the default and disconnects the port of the monitor * component * @param p_monitor monitor component */ function f_cf_oracle_down(in OracleClient p_client) runs on OracleServer { disconnect(self:vPort, p_client:vPort); } /** * @desc creates a IOT equipment user component * @param p_name name of the equipment user component * @return reference to the created equipment user component */ function f_cf_create_IotEquipmentUser(in charstring p_name) runs on TestCoordinator return IotEquipmentUser { var IotEquipmentUser v_iotEquipmentUser := IotEquipmentUser.create(p_name) alive; // TODO var IotEquipmentUser v_iotEquipmentUser := IotEquipmentUser.create alive; /* YANN It's really better to use named port for debug and so on */ return v_iotEquipmentUser; } }