.mo.MOXML_Extra.1.7.source-code.MCPrototype.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <mal:specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mal="http://www.ccsds.org/schema/ServiceSchema" xmlns:com="http://www.ccsds.org/schema/COMSchema"> <mal:area comment="Contains services required to support testing of the MC service." name="MCPrototype" number="210" version="1"> <mal:service xsi:type="com:ExtendedServiceType" comment="" name="AlertTest" number="2"> <mal:capabilitySet number="1"> <mal:submitIP name="resetTest" number="1" supportInReplay="false" comment="Resets the AlertTest service provider and sets the source information that should be used for AlertEvents."> <mal:messages> <mal:submit comment="The alertDomain field specifies the domain in which alerts are to be created. The sourceObjectNumber is the value for all AlertEvent source link object number. The sourceObjectInstanceid is the value for all AlertEvent source link instance id. The other values for the SourceType of the source identifier should be: Area = MC Prototype area number, Service = Alert Test service number Version = MC Prototype version number"> <mal:field name="alertDomain" comment="The alertDomain field specifies the domain in which alerts are to be created."> <mal:type area="MAL" name="String"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:requestIP name="generateAlert" number="2" supportInReplay="false" comment="Generates an alert. The alert domain shall be the values set via resetTest. The source object shall be an OperationActivity object with instance number Return is the instance ID of the generated alert."> <mal:messages> <mal:request comment="The alertIdentifier field specifies the alert definition instance from which an alert event is to be created"> <mal:field name="alertIdentifier" comment="The alertIdentifier is the instance id of the alert definition."> <mal:type area="MAL" name="Long"/> </mal:field> <mal:field name="alertArgumentValues" comment="The alertArguments is the list of argument values to set in the alert event."> <mal:type area="MC" name="AttributeValue" list="true" /> </mal:field> <mal:field name="convertArguments" comment="If true, convert argument values if a conversion is available and is possible. If a raw value for an argument is provided in alertArgumentValues and convertArguments is true, the generated alert shall contain a converted value for that argument where a conversion exists. If a converted value for an argument is provided in alertArgumentValues and convertArguments is true, the generated alert shall contain a raw value for that argument where a conversion exists and is of a type that can convert to raw values."> <mal:type area="MAL" name="Boolean" /> </mal:field> </mal:request> <mal:response comment="The response shall contain the instance Id of the generated alert, or 0 if no alert was generated."> <mal:type name="Long" area="MAL"/> </mal:response> </mal:messages> </mal:requestIP> <mal:requestIP name="addAlertDefinition" number="3" supportInReplay="false" comment="Add alert definitions to the test scenario"> <mal:messages> <mal:request comment="The alertCreation field specifies the name and defintion of of the alert to be created"> <mal:field name="alertCreation"> <mal:type name="AlertCreationRequest" service="Alert" area="MC"/> </mal:field> </mal:request> <mal:response comment="The response shall contain the instance Id of the alert definition, or 0 if no definition was generated."> <mal:type name="ObjectInstancePair" area="MC"/> </mal:response> </mal:messages> </mal:requestIP> </mal:capabilitySet> </mal:service> <mal:service xsi:type="com:ExtendedServiceType" comment="" name="ActionTest" number="3"> <mal:capabilitySet number="1"> <mal:submitIP name="resetTest" number="1" supportInReplay="false" comment="Resets the ActionTest service provider and sets the source information that should be used for ActivityTracking Events."> <mal:messages> <mal:submit comment="The alertDomain field specifies the domain in which alerts are to be created. The sourceObjectNumber is the value for all AlertEvent source link object number. The sourceObjectInstanceid is the value for all AlertEvent source link instance id. The other values for the SourceType of the source identifier should be: Area = MC Prototype area number, Service = Alert Test service number Version = MC Prototype version number"> <mal:field name="domain" comment="The domain field specifies the domain in which tracking events are to be created."> <mal:type area="MAL" name="String"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:requestIP name="addActionDefinition" number="3" supportInReplay="false" comment="Add action definitions to the test scenario"> <mal:messages> <mal:request comment="The actionDefinition field contains the full definition of the action"> <mal:field name="actionDefinition"> <mal:type name="ActionCreationRequest" service="Action" area="MC"/> </mal:field> </mal:request> <mal:response comment="The response shall contain the instance Id of the action definition, or 0 if no definition was generated."> <mal:type name="ObjectInstancePair" area="MC"/> </mal:response> </mal:messages> </mal:requestIP> <mal:submitIP name="forcePreCheckInvalidException" number="4" supportInReplay="false" comment="Force the ActionHandler preCheck function to throw the invalid exception. Index values to be set in the exception are provided."> <mal:messages> <mal:submit comment=""> <mal:field name="force" comment="The force field whether the error should be forced or not"> <mal:type area="MAL" name="Boolean"/> </mal:field> <mal:field name="extra" comment="The extra field is the list of index values to be supplied with the exception."> <mal:type area="MAL" name="UInteger" list="true" /> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="forcePreCheckFailure" number="5" supportInReplay="false" comment="Force the ActionHandler preCheck function to return failure"> <mal:messages> <mal:submit comment=""> <mal:field name="force" comment="The force field whether the error should be forced or not"> <mal:type area="MAL" name="Boolean"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setFailureStage" number="6" supportInReplay="false" comment="Set the stage number at which the next action instance should fail. 0=No failure, 1=Start activity, 2+=Progress/Completion depending upon progressStepCount of related definition "> <mal:messages> <mal:submit comment=""> <mal:field name="stage" comment="The step number at which to fail, where 0 is not failure"> <mal:type area="MAL" name="UInteger"/> </mal:field> <mal:field name="failureCode" comment="If failure is set, the failure code to be returned in the ActionFailure event"> <mal:type area="MAL" name="UInteger"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setMinimumActionExecutionTime" number="7" supportInReplay="false" comment="Set the minumum execution time for actions. If the value is 0 or not set there is no minimum "> <mal:messages> <mal:submit comment=""> <mal:field name="time" comment="The minimum execution time in seconds"> <mal:type area="MAL" name="UInteger"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> </mal:capabilitySet> </mal:service> <mal:service xsi:type="com:ExtendedServiceType" comment="" name="ParameterTest" number="130"> <mal:capabilitySet number="1"> <mal:submitIP name="pushParameterValue" number="1" supportInReplay="false" comment="Pushes a new value of a parameter. This creates a parameterValue-Update that will be published and can be monitored via the monitorValue-Operation"> <mal:messages> <mal:submit comment=""> <mal:field name="name" comment="the name of the parameter the value should be updated from"> <mal:type area="MAL" name="Identifier"/> </mal:field> <mal:field name="value" comment="the new parameter-value"> <mal:type area="MC" service="Parameter" name="ParameterRawValue"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setValidityStateOptions" number="2" supportInReplay="false" comment="Sets the evaluation options for creating a custom validity state of a parameters-value. Custom means, on the one hand, using custom mechanisms for evaluating the validity state and on the other hand using custom validity-state values. Via the getCustomValidityState-Operation these options will be considered."> <mal:messages> <mal:submit comment=""> <mal:field name="customMechanisms" comment="True, if implementation specific mechanisms should be used for evaluating the validity-state. Meaning the standard-ones defined in the functional requirements will not be used instead you own implemented ones."> <mal:type area="MAL" name="Boolean"/> </mal:field> <mal:field name="customValue" comment="True, if deployment specific validity state values should be used. Meaning the standard-ones defined in the functional requirements will not be used instead you own specific ones. These values are greater than 127"> <mal:type area="MAL" name="Boolean"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setReadOnlyParameter" number="3" supportInReplay="false" comment="sets a parameter with the given name to a readonly-parameter"> <mal:messages> <mal:submit comment=""> <mal:field name="name" comment="the name of the parameter"> <mal:type area="MAL" name="Identifier"/> </mal:field> <mal:field name="value" comment="true if it should be set as a read-only parameter, false if it should be deleted from the read-only-list"> <mal:type area="MAL" name="Boolean"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setProvidedIntervals" number="4" supportInReplay="false" comment="Sets a list of update-intervals, that will be provided by the provider. A parameters updateInterval, must be equal to one of these provided interval."> <mal:messages> <mal:submit comment=""> <mal:field name="providedIntervals" comment="list of update-intervals, that will be provided by the provider"> <mal:type list="true" area="MAL" name="Duration"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="deleteParameterValues" number="5" supportInReplay="false" comment="Deletes all Parameters Raw Values set in the internal provider list."> <mal:messages> <mal:submit> </mal:submit> </mal:messages> </mal:submitIP> </mal:capabilitySet> </mal:service> <mal:service xsi:type="com:ExtendedServiceType" comment="" name="AggregationTest" number="133"> <mal:capabilitySet number="1"> <mal:submitIP name="triggerAggregationUpdate" number="1" supportInReplay="false" comment=""> <mal:messages> <mal:submit comment=""> <mal:field name="name" comment=""> <mal:type area="MAL" name="Identifier"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> </mal:capabilitySet> </mal:service> <mal:service xsi:type="com:ExtendedServiceType" comment="Service which contains an interface to allow the testing of the Statistic service. The statistics service implementtaion musr support the following constraints required for full testing of the service - Maximum valid sample period 50.0 Minimum 0.1 - Supported functions - MAX,MIN,MEAN, STANDARD DEVIATION - only parameter of type integer can be specified in Statitics Evaluations The Statistics Service implementation will obtain the parameter values from the Statistics Test Service The Statistics Test Service will support the folloaing parameters with the specified names: PAR1 - Identity Id 1 Defintion ID 100 Integer initialised to 0 raw value incremented every seconds PAR2 - Identity Id 2 Defintion ID 101 Integer initialised to 1 raw value incremented every seconds PAR3 - Identity Id 2 Defintion ID 102 Integer initialised to 200 raw value incremented every second PAR4 - Identity Id 4 Defintion ID 104 Integer initialised to 1 value not incremented (can be set from test) PAR5 - Identity Id 5 Defintion ID 105 Integer initialised to 10 value not incremented (can be set from test) PAR6 - Identity Id 6 Defintion ID 106 String For the numeric parameters teh converted value shall be set to 2 * raw value" name="StatisticTest" number="134"> <mal:capabilitySet number="1"> <mal:submitIP name="resetTest" number="1" supportInReplay="false" comment="Resets the StatisticTest service provider and sets the domain that should be used."> <mal:messages> <mal:submit comment="The statistic Domain field specifies the domain to be used. Removes all statistic evaluations and sets all parameters back to intial values. Area = MC Prototype area number, Service = Statistic Test service number Version = MC Prototype version number"> <mal:field name="statisticDomain" comment="The domain to be used for the tests."> <mal:type area="MAL" name="String"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:submitIP name="setParameterValue" number="2" supportInReplay="false" comment="Sets the current value of a parameter used in the test"> <mal:messages> <mal:submit comment="The id field specifies the paramater identifier. The value fieldspecified the identifier."> <mal:field name="id" comment="The parameter identifier."> <mal:type area="MAL" name="Integer"/> </mal:field> <mal:field name="value" comment="The parameter value."> <mal:type area="MAL" name="Integer"/> </mal:field> </mal:submit> </mal:messages> </mal:submitIP> <mal:requestIP name="addParameter" number="3" supportInReplay="false" comment="Add a parameter to the test scenario. Parameter must be one of the pre-defined set defined in service description"> <mal:messages> <mal:request comment="The name field specifies the name of parameter"> <mal:field name="parName"> <mal:type name="String" area="MAL"/> </mal:field> </mal:request> <mal:response comment="The response shall contain the instance Id of the alert definition, or 0 if no definition was generated."> <mal:type name="ObjectInstancePair" area="MC"/> </mal:response> </mal:messages> </mal:requestIP> </mal:capabilitySet> </mal:service> </mal:area> </mal:specification>