Class CipAttribute.Proxy
- java.lang.Object
-
- com.automation_pros.odva.cip.types.CipTree
-
- com.automation_pros.odva.cip.types.CipTreeCtx
-
- com.automation_pros.odva.cip.types.CipObject
-
- com.automation_pros.odva.cip.core.CipAttribute
-
- com.automation_pros.odva.cip.core.CipAttribute.Proxy
-
- All Implemented Interfaces:
DataContext
,DataWrapper
- Enclosing class:
- CipAttribute
public static class CipAttribute.Proxy extends CipAttribute
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.core.CipAttribute
CipAttribute.Proxy
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.types.CipObject
CipObject.FutureMultipleReply
-
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.types.CipTree
CipTree.ChildMap
-
-
Field Summary
Fields Modifier and Type Field Description CipAttribute
proxy
-
Fields inherited from class com.automation_pros.odva.cip.types.CipTree
children, objEPath, parent, segment
-
Fields inherited from interface com.automation_pros.odva.cip.data.DataContext
emptyContext
-
-
Constructor Summary
Constructors Constructor Description Proxy(PathSegment segment, AttributeHolder parent, CipAttribute proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bytes()
BaseDataType<?>
getData()
Many CIP objects wrap a CIP data type.int
intValue()
boolean
isReadOnly()
void
put(java.nio.ByteBuffer dest)
void
putType(java.nio.ByteBuffer dest)
void
service(CipObject appContext, CipRequest request, int nesting)
Execute a CIP service on the object, using the request supplied.void
set(java.nio.ByteBuffer source)
-
Methods inherited from class com.automation_pros.odva.cip.core.CipAttribute
compareTo, getHolder, number, setData
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, getDevice, getDisplayName, getName, getParent, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, setChild, setChildSymbol, setName, setParent, shutdown, toString
-
Methods inherited from class com.automation_pros.odva.cip.types.CipTreeCtx
getCtxDataImpl, getNamedDef, getParentDataCtx, getTypeByCRC, getTypeByName, getTypesImpl
-
Methods inherited from class com.automation_pros.odva.cip.types.CipTree
cleanup, entrySet, follow, getChildren, getEPath, getEPathImpl, getSegment, keySet, removeChild, setSegment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Field Detail
-
proxy
public final CipAttribute proxy
-
-
Constructor Detail
-
Proxy
public Proxy(PathSegment segment, AttributeHolder parent, CipAttribute proxy)
-
-
Method Detail
-
bytes
public int bytes()
- Overrides:
bytes
in classCipAttribute
-
intValue
public int intValue()
- Overrides:
intValue
in classCipAttribute
-
isReadOnly
public boolean isReadOnly()
- Overrides:
isReadOnly
in classCipAttribute
-
service
public void service(CipObject appContext, CipRequest request, int nesting)
Description copied from class:CipObject
Execute a CIP service on the object, using the request supplied. Supply a reply to the request and/or throw an appropriate CipException. Replies are not required before this routine returns.
Direct service() calls MUST NOT BLOCK. Any operation that will take any significant time must be delegated to an executor. "Significant" may vary by application, but typically would be in the fractional millisecond range.
- Overrides:
service
in classCipAttribute
- Parameters:
appContext
- Root object for application path lookups. Generally aMirrored Device
from a port context.request
- What to do and where to reply. Services to be handled by child objects are to be passed to their service() method with nesting+1.nesting
- How many leading path segments items to skip when processing this request. Avoids copying the balance of an application path into a new request when passing a request to a child object.
-
set
public void set(java.nio.ByteBuffer source)
- Overrides:
set
in classCipAttribute
-
put
public void put(java.nio.ByteBuffer dest)
- Overrides:
put
in classCipAttribute
-
putType
public void putType(java.nio.ByteBuffer dest)
- Overrides:
putType
in classCipAttribute
-
getData
public BaseDataType<?> getData()
Description copied from interface:DataWrapper
Many CIP objects wrap a CIP data type. This interface allows the member resolver to access fragments of complex wrapped data in a uniform way.- Specified by:
getData
in interfaceDataWrapper
- Overrides:
getData
in classCipAttribute
- Returns:
-
-