Class OmronTIMENS
- java.lang.Object
-
- com.automation_pros.odva.cip.data.BaseDataType<java.lang.Double>
-
- com.automation_pros.odva.cip.data.CipLREAL
-
- com.automation_pros.odva.cip.data.OmronTIMENS
-
public class OmronTIMENS extends CipLREAL
Omron implementation of nanoseconds Time of Day. Functionally identical to CipNTIME.Encoded unsigned in eight bytes. Can represent up to 23:59:59.999999999.
-
-
Field Summary
Fields Modifier and Type Field Description static doublescale-
Fields inherited from class com.automation_pros.odva.cip.data.BaseDataType
dimensions, memberOffsets, sLogger, variantContext, varyingDimension
-
-
Constructor Summary
Constructors Modifier Constructor Description OmronTIMENS()OmronTIMENS(int[] dimensions)OmronTIMENS(long val)protectedOmronTIMENS(OmronTIMENS data, int[] indices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intbytesImpl(int[] indices)Retrieve the bytes payload size of a single array element (or sole element).OmronTIMENScopy()Produce a deep clone of the object.java.lang.StringcrcName()Obtain the name of this type as used for computing structure CRCs.DataDefinitionSeggetNestingDef()Return the element (not including array) type definition as a Path Segment, using the abbreviated form if a composite data type.voidputAbbrevType(java.nio.ByteBuffer dest)Many subclasses will be data elements supported by Logix processors.protected voidputPayloadImpl(java.nio.ByteBuffer dest, int[] indices)All concrete implementations must supply their per-element encoder here.protected voidsetPayloadImpl(java.nio.ByteBuffer source, int[] indices)All concrete implementations must supply their per-element decoder here.OmronTIMENSwrap(int[] indices)Application-side wrapper for inner dimensions.-
Methods inherited from class com.automation_pros.odva.cip.data.CipLREAL
bytesEach, copyToImpl, copyToImpl, doubleValue, get, set, setDimensions, setFromTokenImpl, singleToString, structCRCString
-
Methods inherited from class com.automation_pros.odva.cip.data.BaseDataType
alignment, browseInner, browseInnerImpl, bytes, checkDimensions, chkAbbrevType, concatIndices, conditionalSuffix, copyTo, CRC16, CRC16, CRC16, dim2linear, dim2linear, dim2qty, dim2suffix, dimensionToString, extendIntArray, fillIntArray, get, getCompleteDef, getDimensions, getMemberOffsets, getSymbolType, getTypeCode, getVariantContext, getVaryingDimension, hasOffset, incIdx, intArray, intValue, linear2dim, linear2dim, longValue, makeInstance, maxEach, minEach, nestedBytes, nestedBytesEach, nestedBytesImpl, nestedPutPayload, nestedPutPayloadImpl, nestedSetPayload, nestedSetPayloadImpl, putPayload, range2suffix, rawCRC16, set, setFromTokenizer, setFromTokenizerImpl, setFromTokenString, setInt, setLong, setMemberOffsets, setPayload, setupTokenizer, setVariantContext, setVariantDimension, setVariantDimension, sliceTo, toString
-
-
-
-
Field Detail
-
scale
public static final double scale
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmronTIMENS
public OmronTIMENS()
-
OmronTIMENS
public OmronTIMENS(long val)
-
OmronTIMENS
public OmronTIMENS(int[] dimensions)
-
OmronTIMENS
protected OmronTIMENS(OmronTIMENS data, int[] indices)
-
-
Method Detail
-
getNestingDef
public DataDefinitionSeg getNestingDef()
Description copied from class:BaseDataTypeReturn the element (not including array) type definition as a Path Segment, using the abbreviated form if a composite data type.- Overrides:
getNestingDefin classCipLREAL
-
putAbbrevType
public void putAbbrevType(java.nio.ByteBuffer dest)
Description copied from class:BaseDataTypeMany subclasses will be data elements supported by Logix processors. The LogixTagType interface requires this routine, which is identical for all types with a compact representation.- Overrides:
putAbbrevTypein classBaseDataType<java.lang.Double>
-
crcName
public java.lang.String crcName()
Description copied from class:BaseDataTypeObtain the name of this type as used for computing structure CRCs. Can be different from the name(s) used by the CipPath parser.
-
setPayloadImpl
protected void setPayloadImpl(java.nio.ByteBuffer source, int[] indices)Description copied from class:BaseDataTypeAll concrete implementations must supply their per-element decoder here.- Overrides:
setPayloadImplin classCipLREAL
-
putPayloadImpl
protected void putPayloadImpl(java.nio.ByteBuffer dest, int[] indices)Description copied from class:BaseDataTypeAll concrete implementations must supply their per-element encoder here.- Overrides:
putPayloadImplin classCipLREAL
-
bytesImpl
protected int bytesImpl(int[] indices)
Description copied from class:BaseDataTypeRetrieve the bytes payload size of a single array element (or sole element). Objects with fixed element sizes may simply return bytesEach() here.
-
copy
public OmronTIMENS copy()
Description copied from class:BaseDataTypeProduce a deep clone of the object.
-
wrap
public OmronTIMENS wrap(int[] indices)
Description copied from class:BaseDataTypeApplication-side wrapper for inner dimensions. Implementations must update memberOffsets if not not using the protected constructor.
-
-