Package com.automation_pros.odva.logix
Class LgxProgram
- 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.CipInstance
-
- com.automation_pros.odva.logix.LgxProgram
-
- All Implemented Interfaces:
DataContext
,AttributeHolder
,SymbolInstance
,java.lang.Comparable<CipInstance>
public class LgxProgram extends CipInstance implements SymbolInstance
-
-
Nested Class Summary
-
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 protected java.lang.String
bareName
protected CipSTRING
cipName
protected CipDINT
dimensions
protected CipUINT
mxinstattr
LgxTagMgr
programTagMgr
protected AnsiSymbolSeg
symbol
protected CipINT
symbolType
-
Fields inherited from class com.automation_pros.odva.cip.core.CipInstance
attr_all
-
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 LgxProgram(InstanceSeg seg, LgxTagMgr parent, java.lang.String programName)
LgxProgram(LgxTagMgr parent, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LgxDevice
getDevice()
CipObjects are expected to be organized as a tree, typically with a CipDevice at the root.java.lang.String
getName()
LgxTagMgr
getParent()
static java.util.List<LgxProgram>
getPrograms(LgxTagMgr mgr)
LgxTagMgr
getProgramTagMgr()
AnsiSymbolSeg
getSymbol()
java.util.List<LgxTag>
getTags()
-
Methods inherited from class com.automation_pros.odva.cip.core.CipInstance
compareTo, getAttribute, getEPathImpl, getSegment, isPrivate, number, service, setParent, toString
-
Methods inherited from class com.automation_pros.odva.cip.types.CipObject
executor, getChild, getDisplayName, isShutdown, logger, onReplacement, removeChildSymbol, scheduler, setChild, setChildSymbol, setName, shutdown
-
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, 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.types.AttributeHolder
executor, getChild, getDisplayName, getEPath, isShutdown, logger, scheduler, shutdown
-
Methods inherited from interface com.automation_pros.odva.cip.data.DataContext
fromEnum, getCtxData, getCtxDataOrNull, getTypes, makeHosted, makeUnhosted, toEnum
-
-
-
-
Field Detail
-
bareName
protected final java.lang.String bareName
-
cipName
protected final CipSTRING cipName
-
symbol
protected final AnsiSymbolSeg symbol
-
symbolType
protected final CipINT symbolType
-
dimensions
protected final CipDINT dimensions
-
mxinstattr
protected CipUINT mxinstattr
-
programTagMgr
public final LgxTagMgr programTagMgr
-
-
Constructor Detail
-
LgxProgram
public LgxProgram(InstanceSeg seg, LgxTagMgr parent, java.lang.String programName)
- Parameters:
seg
-parent
-programName
-
-
LgxProgram
public LgxProgram(LgxTagMgr parent, java.lang.String name)
-
-
Method Detail
-
getParent
public LgxTagMgr getParent()
- Specified by:
getParent
in interfaceAttributeHolder
- Overrides:
getParent
in classCipObject
-
getDevice
public LgxDevice getDevice()
Description copied from class:CipObject
CipObjects are expected to be organized as a tree, typically with a CipDevice at the root. (CipDevices can have a parent too, if an implementer chooses to represent a virtual chassis that way.)By default, any CipObject will simply ask its parent for the device if asked for the device. A CipDevice returns itself.
-
getProgramTagMgr
public LgxTagMgr getProgramTagMgr()
-
getSymbol
public AnsiSymbolSeg getSymbol()
- Specified by:
getSymbol
in interfaceSymbolInstance
-
getPrograms
public static java.util.List<LgxProgram> getPrograms(LgxTagMgr mgr)
-
getTags
public java.util.List<LgxTag> getTags()
-
-