Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.ccsds.moims.mo.platform.gps;
/**
* Helper class for GPS service.
*/
public class GPSHelper
{
/**
* Service number literal.
*/
public static final int _GPS_SERVICE_NUMBER = 2;
/**
* Service number instance.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GPS_SERVICE_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GPS_SERVICE_NUMBER);
/**
* Service name constant.
*/
public static final org.ccsds.moims.mo.mal.structures.Identifier GPS_SERVICE_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("GPS");
/**
* Service singleton instance.
*/
public static org.ccsds.moims.mo.com.COMService GPS_SERVICE = new org.ccsds.moims.mo.com.COMService(GPS_SERVICE_NUMBER, GPS_SERVICE_NAME);
/**
* Operation number literal for operation GETNMEASENTENCE.
*/
public static final int _GETNMEASENTENCE_OP_NUMBER = 1;
/**
* Operation number instance for operation GETNMEASENTENCE.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GETNMEASENTENCE_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GETNMEASENTENCE_OP_NUMBER);
/**
* Operation instance for operation GETNMEASENTENCE.
*/
public static final org.ccsds.moims.mo.mal.MALInvokeOperation GETNMEASENTENCE_OP = new org.ccsds.moims.mo.mal.MALInvokeOperation(GETNMEASENTENCE_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("getNMEASentence"), 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[] {org.ccsds.moims.mo.mal.structures.Attribute.STRING_SHORT_FORM}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.mal.structures.Attribute.STRING_SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation GETLASTKNOWNPOSITION.
*/
public static final int _GETLASTKNOWNPOSITION_OP_NUMBER = 2;
/**
* Operation number instance for operation GETLASTKNOWNPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GETLASTKNOWNPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GETLASTKNOWNPOSITION_OP_NUMBER);
/**
* Operation instance for operation GETLASTKNOWNPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALRequestOperation GETLASTKNOWNPOSITION_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(GETLASTKNOWNPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("getLastKnownPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(2), 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.gps.structures.Position.SHORT_FORM, org.ccsds.moims.mo.mal.structures.Attribute.DURATION_SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation GETPOSITION.
*/
public static final int _GETPOSITION_OP_NUMBER = 3;
/**
* Operation number instance for operation GETPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GETPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GETPOSITION_OP_NUMBER);
/**
* Operation instance for operation GETPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALInvokeOperation GETPOSITION_OP = new org.ccsds.moims.mo.mal.MALInvokeOperation(GETPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("getPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(3), 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[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.platform.gps.structures.Position.SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation GETSATELLITESINFO.
*/
public static final int _GETSATELLITESINFO_OP_NUMBER = 4;
/**
* Operation number instance for operation GETSATELLITESINFO.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort GETSATELLITESINFO_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_GETSATELLITESINFO_OP_NUMBER);
/**
* Operation instance for operation GETSATELLITESINFO.
*/
public static final org.ccsds.moims.mo.mal.MALInvokeOperation GETSATELLITESINFO_OP = new org.ccsds.moims.mo.mal.MALInvokeOperation(GETSATELLITESINFO_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("getSatellitesInfo"), false, new org.ccsds.moims.mo.mal.structures.UShort(4), 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[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.platform.gps.structures.SatelliteInfoList.SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation LISTNEARBYPOSITION.
*/
public static final int _LISTNEARBYPOSITION_OP_NUMBER = 5;
/**
* Operation number instance for operation LISTNEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort LISTNEARBYPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_LISTNEARBYPOSITION_OP_NUMBER);
/**
* Operation instance for operation LISTNEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALRequestOperation LISTNEARBYPOSITION_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(LISTNEARBYPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("listNearbyPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(5), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM}, 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.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation ADDNEARBYPOSITION.
*/
public static final int _ADDNEARBYPOSITION_OP_NUMBER = 6;
/**
* Operation number instance for operation ADDNEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort ADDNEARBYPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_ADDNEARBYPOSITION_OP_NUMBER);
/**
* Operation instance for operation ADDNEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALRequestOperation ADDNEARBYPOSITION_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(ADDNEARBYPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("addNearbyPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(6), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.platform.gps.structures.NearbyPositionDefinitionList.SHORT_FORM}, 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.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation REMOVENEARBYPOSITION.
*/
public static final int _REMOVENEARBYPOSITION_OP_NUMBER = 7;
/**
* Operation number instance for operation REMOVENEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort REMOVENEARBYPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_REMOVENEARBYPOSITION_OP_NUMBER);
/**
* Operation instance for operation REMOVENEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALSubmitOperation REMOVENEARBYPOSITION_OP = new org.ccsds.moims.mo.mal.MALSubmitOperation(REMOVENEARBYPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("removeNearbyPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(6), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
/**
* Operation number literal for operation NEARBYPOSITION.
*/
public static final int _NEARBYPOSITION_OP_NUMBER = 8;
/**
* Operation number instance for operation NEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort NEARBYPOSITION_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_NEARBYPOSITION_OP_NUMBER);
/**
* Operation instance for operation NEARBYPOSITION.
*/
public static final org.ccsds.moims.mo.mal.MALPubSubOperation NEARBYPOSITION_OP = new org.ccsds.moims.mo.mal.MALPubSubOperation(NEARBYPOSITION_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("nearbyPosition"), false, new org.ccsds.moims.mo.mal.structures.UShort(7), new Long[] {org.ccsds.moims.mo.mal.structures.BooleanList.SHORT_FORM}, new Long[0]);
/**
* Literal for object NEARBYPOSITION.
*/
@org.ccsds.moims.mo.com.Proposed
public static final int _NEARBYPOSITION_OBJECT_NUMBER = 1;
/**
* Instance for object NEARBYPOSITION.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.mal.structures.UShort NEARBYPOSITION_OBJECT_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_NEARBYPOSITION_OBJECT_NUMBER);
/**
* Object name constant.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.mal.structures.Identifier NEARBYPOSITION_OBJECT_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("NearbyPosition");
/**
* Object type constant.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.com.structures.ObjectType NEARBYPOSITION_OBJECT_TYPE = new org.ccsds.moims.mo.com.structures.ObjectType(org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA_NUMBER, GPS_SERVICE_NUMBER, org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA_VERSION, NEARBYPOSITION_OBJECT_NUMBER);
/**
* Object instance.
*/
@org.ccsds.moims.mo.com.Proposed
public static org.ccsds.moims.mo.com.COMObject NEARBYPOSITION_OBJECT = new org.ccsds.moims.mo.com.COMObject(NEARBYPOSITION_OBJECT_TYPE, NEARBYPOSITION_OBJECT_NAME, org.ccsds.moims.mo.platform.gps.structures.NearbyPositionDefinition.SHORT_FORM, true, null, true, null, false);
/**
* Literal for object NEARBYPOSITIONALERT.
*/
@org.ccsds.moims.mo.com.Proposed
public static final int _NEARBYPOSITIONALERT_OBJECT_NUMBER = 2;
/**
* Instance for object NEARBYPOSITIONALERT.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.mal.structures.UShort NEARBYPOSITIONALERT_OBJECT_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_NEARBYPOSITIONALERT_OBJECT_NUMBER);
/**
* Object name constant.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.mal.structures.Identifier NEARBYPOSITIONALERT_OBJECT_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("NearbyPositionAlert");
/**
* Object type constant.
*/
@org.ccsds.moims.mo.com.Proposed
public static final org.ccsds.moims.mo.com.structures.ObjectType NEARBYPOSITIONALERT_OBJECT_TYPE = new org.ccsds.moims.mo.com.structures.ObjectType(org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA_NUMBER, GPS_SERVICE_NUMBER, org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA_VERSION, NEARBYPOSITIONALERT_OBJECT_NUMBER);
/**
* Object instance.
*/
@org.ccsds.moims.mo.com.Proposed
public static org.ccsds.moims.mo.com.COMObject NEARBYPOSITIONALERT_OBJECT = new org.ccsds.moims.mo.com.COMObject(NEARBYPOSITIONALERT_OBJECT_TYPE, NEARBYPOSITIONALERT_OBJECT_NAME, org.ccsds.moims.mo.mal.structures.Attribute.BOOLEAN_SHORT_FORM, true, org.ccsds.moims.mo.platform.gps.GPSHelper.NEARBYPOSITION_OBJECT_TYPE, true, null, false);
/**
* 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
{
GPS_SERVICE.addOperation(GETNMEASENTENCE_OP);
GPS_SERVICE.addOperation(GETLASTKNOWNPOSITION_OP);
GPS_SERVICE.addOperation(GETPOSITION_OP);
GPS_SERVICE.addOperation(GETSATELLITESINFO_OP);
GPS_SERVICE.addOperation(LISTNEARBYPOSITION_OP);
GPS_SERVICE.addOperation(ADDNEARBYPOSITION_OP);
GPS_SERVICE.addOperation(REMOVENEARBYPOSITION_OP);
GPS_SERVICE.addOperation(NEARBYPOSITION_OP);
GPS_SERVICE.addCOMObject(NEARBYPOSITION_OBJECT);
GPS_SERVICE.addCOMObject(NEARBYPOSITIONALERT_OBJECT);
org.ccsds.moims.mo.platform.PlatformHelper.PLATFORM_AREA.addService(GPS_SERVICE);
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.Position.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.PositionFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.PositionList.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.PositionListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.SatelliteInfo.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.SatelliteInfoFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.SatelliteInfoList.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.SatelliteInfoListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.PositionExtraDetails.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.PositionExtraDetailsFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.PositionExtraDetailsList.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.PositionExtraDetailsListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.NearbyPositionDefinition.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.NearbyPositionDefinitionFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.platform.gps.structures.NearbyPositionDefinitionList.SHORT_FORM, new org.ccsds.moims.mo.platform.gps.structures.factory.NearbyPositionDefinitionListFactory());
}
/**
* 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);
}
}