// create a ServiceTemplates with the XML files defining the expected servixes and types ServiceTemplates template = new ServiceTemplates(module, <services definition>, <types definition>); // get the service to check ServiceInstance<?, ?> service = ... // // check a service, not taking into account its direction, the module can provide the service or subscribe to it short state = template.checkService(service); // check a service, the service will be considered unconsistent if it is not provided by the module state = template.checkService(service, ServiceTemplates.PROVIDER); // check a service, the service will be considered unconsistent if the module does not subscribe to it state = template.checkService(service, ServiceTemplates.SUBSCRIBER);
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence