/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * Returns the index of the enumerated item as a {@code UOctet}. * @return the index of the enumerated item as a {@code UOctet}. */ public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
@Override public UOctet decodeUOctet() throws MALException { return new UOctet(sourceBuffer.getUnsignedShort8()); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
@Override public UOctet decodeUOctet() throws MALException { return new UOctet(sourceBuffer.getUnsignedShort8()); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
/** * 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.encodeUOctet(new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue())); }
/** * converts a validityState to its UOctet-Value * * @param valState the validityState to be converted * @return the converted validityState as an UOctet */ private UOctet getAsUOctet(ValidityState valState) { return new UOctet((short) valState.getNumericValue().getValue()); }
/** * Generates an ObjectType from the objectTypeId (aka subkey) * * @param subkey Subkey of the COM object * @return ObjectType object */ public static ObjectType objectTypeId2objectType(Long subkey) { final long unwrap = (long) subkey; return new ObjectType(new UShort((short) (unwrap >> 48)), new UShort((short) (unwrap >> 32)), new UOctet((byte) (unwrap >> 24)), new UShort((short) (unwrap))); }
public ParameterInstance(final Identifier name, final Attribute value, final ObjectId source, final Time timestamp) { this.name = name; this.parameterValue = new ParameterValue(); this.source = source; this.timestamp = timestamp; this.parameterValue.setRawValue(value); this.parameterValue.setConvertedValue(null); this.parameterValue.setValidityState(new UOctet((short) 0)); }
public static void generateObjectTypeFromSubKey(ObjectType objectType, Long secondSubKey) { long subkey = secondSubKey; // Get the object number from the bottom 3 bytes. objectType.setNumber(new UShort((int) (subkey & 0xFFFFFF))); // Version comes from the next byte. objectType.setVersion(new UOctet((short) ((subkey >> 24) & 0xFF))); // Service comes from the next 2 bytes. objectType.setService(new UShort((int) ((subkey >> 32) & 0xFFFF))); // Arean comes from the next 2 bytes. objectType.setArea(new UShort((int) ((subkey >> 48) & 0xFFFF))); }