/** * Finds a COMService from the fields area, areaVersion and serviceNumber * * @param area Area of the service * @param areaVersion Area version * @param serviceNumber Service number * @return COMService */ public static COMService findCOMService(UShort area, UOctet areaVersion, UShort serviceNumber) { return (COMService) MALContextFactory.lookupArea( area, areaVersion ).getServiceByNumber(serviceNumber); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeNullableLong(related); encoder.encodeNullableElement(source); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeNullableElement(entries); }
protected Object decodeSubElement(final Long shortForm, final MALEncodingContext ctx) throws MALException { if (null == shortForm) { return null; } final MALElementFactory ef = MALContextFactory.getElementFactoryRegistry().lookupElementFactory(shortForm); if (null == ef) { throw new MALException("GEN transport unable to find element factory for short type: " + shortForm); } return dec.decodeElement((Element) ef.createElement()); } }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeElement(serviceKey); encoder.encodeNullableElement(supportedCapabilities); encoder.encodeElement(serviceProperties); encoder.encodeNullableElement(serviceAddresses); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeUInteger(address); encoder.encodeBlob(data); encoder.encodeNullableBlob(checksum); }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { name = decoder.decodeNullableIdentifier(); description = decoder.decodeNullableString(); return this; }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeNullableIdentifier(name); encoder.encodeNullableString(description); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeString(fieldName); encoder.encodeElement(type); encoder.encodeNullableAttribute(fieldValue); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeElement(providerKey); encoder.encodeIdentifier(providerName); encoder.encodeElement(providerDetails); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeUShort(area); encoder.encodeUShort(service); encoder.encodeUOctet(version); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeDouble(latitude); encoder.encodeDouble(longitude); encoder.encodeDouble(altitude); encoder.encodeNullableElement(extraDetails); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeElement(domain); encoder.encodeLong(instId); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeElement(configObjects); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeLong(id); encoder.encodeBoolean(value); }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { width = decoder.decodeUInteger(); height = decoder.decodeUInteger(); return this; }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeNullableDouble(x); encoder.encodeNullableDouble(y); encoder.encodeNullableDouble(z); }
/** * Decodes the value of this object using the provided MALDecoder. * @param decoder decoder - the decoder to use for decoding. * @return Returns this object. * @throws org.ccsds.moims.mo.mal.MALException if any decoding errors are detected. */ public org.ccsds.moims.mo.mal.structures.Element decode(org.ccsds.moims.mo.mal.MALDecoder decoder) throws org.ccsds.moims.mo.mal.MALException { name = decoder.decodeNullableIdentifier(); description = decoder.decodeNullableString(); return this; }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeNullableElement(inPhase); encoder.encodeNullableElement(quadrature); }
/** * Encodes the value of this object using the provided MALEncoder. * @param encoder encoder - the encoder to use for encoding. * @throws org.ccsds.moims.mo.mal.MALException if any encoding errors are detected. */ public void encode(org.ccsds.moims.mo.mal.MALEncoder encoder) throws org.ccsds.moims.mo.mal.MALException { encoder.encodeElement(objType); encoder.encodeElement(domain); encoder.encodeElement(objInstIds); }