Package org.netxms.client.maps.configs
Class SingleDciConfig
java.lang.Object
org.netxms.client.maps.configs.SingleDciConfig
- All Implemented Interfaces:
NodeItemPair
DCI information for map line
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructorSingleDciConfig
(long nodeId, long dciId) Create DCI info for node/DCI ID pairSingleDciConfig
(DciValue dci) Create DCI info from DciValue objectCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with object datalong
getDciId()
Get DCI idGet format string.getName()
Get DCI name.long
Get node IDint
getType()
void
void
setDciId
(long dciId) void
setFormatString
(String formatString) Set format string.void
setInstance
(String instance) void
void
setNodeId
(long nodeId) void
setType
(int type)
-
Field Details
-
ITEM
public static final int ITEM- See Also:
-
TABLE
public static final int TABLE- See Also:
-
nodeId
public long nodeId -
dciId
public long dciId -
type
public int type -
name
-
instance
-
column
-
formatString
-
-
Constructor Details
-
SingleDciConfig
public SingleDciConfig()Default constructor -
SingleDciConfig
Copy constructor- Parameters:
src
- source object
-
SingleDciConfig
Create DCI info from DciValue object- Parameters:
dci
- source DciValue object
-
SingleDciConfig
public SingleDciConfig(long nodeId, long dciId) Create DCI info for node/DCI ID pair- Parameters:
nodeId
- node IDdciId
- DCI ID
-
-
Method Details
-
fillMessage
Fill NXCP message with object data- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
getName
Get DCI name. Always returns non-empty string.- Returns:
- DCI name
-
getFormatString
Get format string.- Returns:
- format string
-
setFormatString
Set format string.- Parameters:
formatString
- new format string
-
getInstance
- Returns:
- the instance
-
setInstance
- Parameters:
instance
- the instance to set
-
getColumn
- Returns:
- the column
-
setColumn
- Parameters:
column
- the column to set
-
getNodeId
public long getNodeId()Description copied from interface:NodeItemPair
Get node ID- Specified by:
getNodeId
in interfaceNodeItemPair
- Returns:
- the nodeId
-
setNodeId
public void setNodeId(long nodeId) - Parameters:
nodeId
- the nodeId to set
-
getDciId
public long getDciId()Description copied from interface:NodeItemPair
Get DCI id- Specified by:
getDciId
in interfaceNodeItemPair
- Returns:
- the dciId
-
setDciId
public void setDciId(long dciId) - Parameters:
dciId
- the dciId to set
-
setName
- Parameters:
name
- the name to set
-
getType
public int getType()- Returns:
- the type
-
setType
public void setType(int type) - Parameters:
type
- the type to set
-