Class NestedLogicalSeg
- java.lang.Object
-
- com.automation_pros.odva.cip.path.PathSegment
-
- com.automation_pros.odva.cip.path.LogicalSeg
-
- com.automation_pros.odva.cip.path.ExtLogSeg
-
- com.automation_pros.odva.cip.path.NestedLogicalSeg
-
- All Implemented Interfaces:
java.lang.Comparable<PathSegment>
- Direct Known Subclasses:
ArrayIndirectSeg,BitIndirectSeg
public abstract class NestedLogicalSeg extends ExtLogSeg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNestedLogicalSeg.SubscriptParser-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.ExtLogSeg
ExtLogSeg.Decoder
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.LogicalSeg
LogicalSeg.LogicalParser
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.PathSegment
PathSegment.HasAlternateHex
-
-
Field Summary
Fields Modifier and Type Field Description protected CipPathnested-
Fields inherited from class com.automation_pros.odva.cip.path.ExtLogSeg
extendedType, SUBTYPE
-
Fields inherited from class com.automation_pros.odva.cip.path.LogicalSeg
format, SEGTYPE, subtype, value
-
Fields inherited from class com.automation_pros.odva.cip.path.PathSegment
identifierChars, segtype
-
-
Constructor Summary
Constructors Constructor Description NestedLogicalSeg(byte exttype)NestedLogicalSeg(byte exttype, CipPath nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PathSegment o)intgetBytes()Obtain the number of bytes needed to encode this segment instance in packed format.CipPathgetNested()protected intgetNestedWords()intgetWords()Obtain the number of 16-bit words needed to encode this segment instance in padded format.voidput(java.nio.ByteBuffer dest, boolean padded)Encode the current instance to the given destination.PathSegmentset(java.nio.ByteBuffer source, boolean padded)Replace the current instance content with the decoded source bytes.-
Methods inherited from class com.automation_pros.odva.cip.path.ExtLogSeg
getExtendedType, getTokens, registerHandler, setExtendedType
-
Methods inherited from class com.automation_pros.odva.cip.path.LogicalSeg
getFormat, getSubtype, getTokens, getValue, hashCode, setFormat, setSubtype, setValue, simpleString
-
Methods inherited from class com.automation_pros.odva.cip.path.PathSegment
decode, decodeAll, equals, getSegtype, hexString, mergeTokens, setSegtype, toString
-
-
-
-
Field Detail
-
nested
protected CipPath nested
-
-
Constructor Detail
-
NestedLogicalSeg
public NestedLogicalSeg(byte exttype)
-
NestedLogicalSeg
public NestedLogicalSeg(byte exttype, CipPath nested)
-
-
Method Detail
-
getNested
public CipPath getNested()
-
getNestedWords
protected int getNestedWords()
-
getWords
public int getWords()
Description copied from class:PathSegmentObtain the number of 16-bit words needed to encode this segment instance in padded format. The default implementation assumes the padded format is simply the size of the packed format, rounded up to an even number of bytes.
-
getBytes
public int getBytes()
Description copied from class:PathSegmentObtain the number of bytes needed to encode this segment instance in packed format.
-
set
public PathSegment set(java.nio.ByteBuffer source, boolean padded)
Description copied from class:PathSegmentReplace the current instance content with the decoded source bytes.The caller must ensure that the instance is appropriate for the bytes supplied. This permits instance re-use in optimized applications.
-
put
public void put(java.nio.ByteBuffer dest, boolean padded)Description copied from class:PathSegmentEncode the current instance to the given destination.
-
compareTo
public int compareTo(PathSegment o)
- Specified by:
compareToin interfacejava.lang.Comparable<PathSegment>- Overrides:
compareToin classExtLogSeg
-
-