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 class
NestedLogicalSeg.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 CipPath
nested
-
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 int
compareTo(PathSegment o)
int
getBytes()
Obtain the number of bytes needed to encode this segment instance in packed format.CipPath
getNested()
protected int
getNestedWords()
int
getWords()
Obtain the number of 16-bit words needed to encode this segment instance in padded format.void
put(java.nio.ByteBuffer dest, boolean padded)
Encode the current instance to the given destination.PathSegment
set(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:PathSegment
Obtain 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:PathSegment
Obtain 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:PathSegment
Replace 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:PathSegment
Encode the current instance to the given destination.
-
compareTo
public int compareTo(PathSegment o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PathSegment>
- Overrides:
compareTo
in classExtLogSeg
-
-