public class LinkConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_SOURCE_CUSTOM_COLOR |
static int |
COLOR_SOURCE_DEFAULT |
static int |
COLOR_SOURCE_OBJECT_STATUS |
static int |
COLOR_SOURCE_UNDEFINED |
| Constructor and Description |
|---|
LinkConfig()
Default constructor
|
LinkConfig(SingleDciConfig[] dciList,
List<Long> objectStatusList,
int colorSource,
int color,
int routing,
long[] bendPoints,
boolean useActiveThresholds,
boolean isLocked)
Constructor for creating XML
|
| Modifier and Type | Method and Description |
|---|---|
static LinkConfig |
createFromXml(String xml)
Create DCI list object from XML document
|
String |
createXml()
Create XML from configuration.
|
long[] |
getBendPoints() |
int |
getColor() |
int |
getColorSource() |
SingleDciConfig[] |
getDciList() |
List<Long> |
getObjectStatusList() |
int |
getRouting() |
boolean |
isLocked() |
boolean |
isUseActiveThresholds() |
void |
setBendPoints(long[] bendPoints) |
void |
setColor(int color) |
void |
setColorSource(int colorSource) |
void |
setDciList(SingleDciConfig[] dciList) |
void |
setLocked(boolean isLocked) |
void |
setObjectStatusList(List<Long> objectStatusList) |
void |
setRouting(int routing) |
void |
setUseActiveThresholds(boolean useActiveThresholds) |
String |
toString() |
public static final int COLOR_SOURCE_UNDEFINED
public static final int COLOR_SOURCE_DEFAULT
public static final int COLOR_SOURCE_OBJECT_STATUS
public static final int COLOR_SOURCE_CUSTOM_COLOR
public LinkConfig()
public LinkConfig(SingleDciConfig[] dciList, List<Long> objectStatusList, int colorSource, int color, int routing, long[] bendPoints, boolean useActiveThresholds, boolean isLocked)
public static LinkConfig createFromXml(String xml) throws Exception
xml - XML documentException - if the object cannot be fully deserializedpublic String createXml() throws Exception
Exception - if the schema for the object is not validpublic void setObjectStatusList(List<Long> objectStatusList)
objectStatusList - the objectStatusList to setpublic SingleDciConfig[] getDciList()
public void setDciList(SingleDciConfig[] dciList)
dciList - the dciList to setpublic int getColor()
public void setColor(int color)
color - the color to setpublic int getRouting()
public void setRouting(int routing)
routing - the routing to setpublic long[] getBendPoints()
public void setBendPoints(long[] bendPoints)
bendPoints - the bendPoints to setpublic void setUseActiveThresholds(boolean useActiveThresholds)
useActiveThresholds - set use active thresholdspublic boolean isUseActiveThresholds()
public boolean isLocked()
public void setLocked(boolean isLocked)
isLocked - set link locked or unlockedpublic int getColorSource()
public void setColorSource(int colorSource)
colorSource - the colorSource to setCopyright © 2018. All rights reserved.