|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.model.HashList<T>
twaver.model.HashCollection<T>
twaver.model.DataBox<Element>
twaver.model.ElementBox
public class ElementBox
网元管理容器,用于网元数据的管理和事件分派
Field Summary |
---|
Fields inherited from class twaver.model.DataBox |
---|
roots |
Fields inherited from class twaver.model.HashList |
---|
dataList, dataMap |
Constructor Summary | |
---|---|
ElementBox()
|
Method Summary | |
---|---|
boolean |
forEachByLayer(Action<Element> action)
|
AlarmBox |
getAlarmBox()
告警容器 |
AlarmStatePropagator |
getAlarmStatePropagator()
告警状态传播器 |
LayerBox |
getLayerBox()
|
ILinkBundle |
getLinkBundle(Link link)
获取连线捆绑器 |
ILinkBundle |
getLinkBundle(Node node1,
Node node2)
获取连线捆绑器 |
java.util.List<ILinkBundle> |
getLinkBundles()
获取所有的连线捆绑器 |
protected void |
onAdd(int index,
Element data)
添加元素 |
protected void |
onClear()
容器被清空 |
protected void |
onDataPropertyChange(PropertyChangeEvent event)
元素属性变化时回调此函数 |
protected void |
onLinkAdd(Link link)
连线添加时回调此函数 |
protected void |
onLinkAgentChange(Link link,
Node oldAgent,
Node newAgent,
Node anotherNode)
连线代理节点变化时回调此函数 |
protected void |
onLinkFromAgentChange(Link link,
Node oldAgent,
Node newAgent)
连线起始端代理变化时回调此函数 |
protected void |
onLinkRemove(Link link)
连线被删除时回调此函数 |
protected void |
onLinkToAgentChange(Link link,
Node oldAgent,
Node newAgent)
连线结束端代理变化时回调此函数 |
protected void |
onRemove(Element data)
|
boolean |
removeNotDescendant(Element data)
删除节点,但不删除孩子,其孩子节点将自动转移到其父节点之下 |
Methods inherited from class twaver.model.DataBox |
---|
beforeDataPropertyChange, doAdd, doRemove, forEachByBreadthFirst, forEachByDepthFirst, forEachByDepthFirstReverse, getDataChangeDispatcher, getParentChangeDispatcher, getRandomData, getRoots, getSelectionChangeDispatcher, getSelectionModel, onParentChange, toRoots |
Methods inherited from class twaver.model.HashCollection |
---|
_remove, accept, add, add, clearAll, getFilterDispatcher, getListChangeDispatcher, remove, setIndex, setListener |
Methods inherited from class twaver.model.HashList |
---|
add, add, add, addAll, addLast, clear, contains, contains, containsAll, containsById, forEach, forEach, forEachReverse, getById, getByIndex, getDatas, getLastData, indexOf, isEmpty, iterator, remove, remove, removeAll, removeById, removeByIndex, retainAll, reverseIterator, set, set, size, sort, toArray, toArray, toDatas, toDatas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface twaver.core.model.IDataBox |
---|
getDataChangeDispatcher, getSelectionChangeDispatcher, getSelectionModel |
Methods inherited from interface twaver.core.model.IHashCollection |
---|
getListChangeDispatcher |
Methods inherited from interface twaver.core.model.IHashList |
---|
add, add, add, add, clearAll, contains, containsById, forEach, forEachReverse, getById, getByIndex, getDatas, getLastData, indexOf, isEmpty, remove, remove, removeById, reverseIterator, set, set, setIndex, size, toDatas |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface twaver.filter.IFilter |
---|
accept |
Methods inherited from interface twaver.event.IHandler |
---|
setListener |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public ElementBox()
Method Detail |
---|
public LayerBox getLayerBox()
getLayerBox
in interface IElementBox
public boolean forEachByLayer(Action<Element> action)
forEachByLayer
in interface IElementBox
protected void onDataPropertyChange(PropertyChangeEvent event)
DataBox
onDataPropertyChange
in class DataBox<Element>
event
- 元素属性变化事件protected void onAdd(int index, Element data)
DataBox
onAdd
in class DataBox<Element>
index
- 序号data
- 元素protected void onRemove(Element data)
onRemove
in class DataBox<Element>
public boolean removeNotDescendant(Element data)
data
- 节点
protected void onClear()
HashCollection
onClear
in class DataBox<Element>
protected void onLinkFromAgentChange(Link link, Node oldAgent, Node newAgent)
link
- 连线oldAgent
- 原来的代理节点newAgent
- 新的代理节点protected void onLinkToAgentChange(Link link, Node oldAgent, Node newAgent)
link
- 连线oldAgent
- 原来的代理节点newAgent
- 新的代理节点protected void onLinkAgentChange(Link link, Node oldAgent, Node newAgent, Node anotherNode)
link
- 连线oldAgent
- 原来的代理节点newAgent
- 新的代理节点anotherNode
- 连线的另一个代理节点protected void onLinkRemove(Link link)
link
- 连线protected void onLinkAdd(Link link)
link
- 连线public ILinkBundle getLinkBundle(Link link)
link
- 连线
public ILinkBundle getLinkBundle(Node node1, Node node2)
node1
- 连线的端点node2
- 连线另一端点
public java.util.List<ILinkBundle> getLinkBundles()
public AlarmBox getAlarmBox()
public AlarmStatePropagator getAlarmStatePropagator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |