org.ccsds.moims.mo.platform.magnetometer.MagnetometerHelper Maven / Gradle / Ivy
package org.ccsds.moims.mo.platform.magnetometer;
/**
* Helper class for Magnetometer service.
*/
public class MagnetometerHelper
{
/**
* Service number literal.
*/
public static final int _MAGNETOMETER_SERVICE_NUMBER = 6;
/**
* Service number instance.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort MAGNETOMETER_SERVICE_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_MAGNETOMETER_SERVICE_NUMBER);
/**
* Service name constant.
*/
public static final org.ccsds.moims.mo.mal.structures.Identifier MAGNETOMETER_SERVICE_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("Magnetometer");
/**
* Service singleton instance.
*/
public static org.ccsds.moims.mo.com.COMService MAGNETOMETER_SERVICE = new org.ccsds.moims.mo.com.COMService(MAGNETOMETER_SERVICE_NUMBER, MAGNETOMETER_SERVICE_NAME);
/**
* Operation number literal for operation GETMAGNETICFIELD.
*/
public static final int _GETMAGNETICFIELD_OP_NUMBER = 1;
/**
* Operation number instance for operation GETMAGNETICFIELD.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GETMAGNETICFIELD_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GETMAGNETICFIELD_OP_NUMBER);
/**
* Operation instance for operation GETMAGNETICFIELD.
*/
public static final org.ccsds.moims.mo.mal.MALRequestOperation GETMAGNETICFIELD_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(GETMAGNETICFIELD_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("getMagneticField"), false, new org.ccsds.moims.mo.mal.structures.UShort(1), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {org.ccsds.moims.mo.platform.magnetometer.structures.MagneticFieldInstance.SHORT_FORM}, new Long[] {}));
/**
* Registers all aspects of this service with the provided element factory.
* @param bodyElementFactory bodyElementFactory The element factory registry to initialise with this helper.
* @throws org.ccsds.moims.mo.mal.MALException If cannot initialise this helper.
*/
public static void init(org.ccsds.moims.mo.mal.MALElementFactoryRegistry bodyElementFactory) throws org.ccsds.moims.mo.mal.MALException
{
MAGNETOMETER_SERVICE.addOperation(GETMAGNETICFIELD_OP);
org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA.addService(MAGNETOMETER_SERVICE);
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.magnetometer.structures.MagneticFieldInstance.SHORT_FORM, new org.ccsds.moims.mo.platform.magnetometer.structures.factory.MagneticFieldInstanceFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.magnetometer.structures.MagneticFieldInstanceList.SHORT_FORM, new org.ccsds.moims.mo.platform.magnetometer.structures.factory.MagneticFieldInstanceListFactory());
}
/**
* Registers all aspects of this service with the provided element factory and any referenced areas/services.
* @param bodyElementFactory bodyElementFactory The element factory registry to initialise with this helper.
* @throws org.ccsds.moims.mo.mal.MALException If cannot initialise this helper.
*/
public static void deepInit(org.ccsds.moims.mo.mal.MALElementFactoryRegistry bodyElementFactory) throws org.ccsds.moims.mo.mal.MALException
{
init(bodyElementFactory);
}
}