public interface IEntityList
Modifier and Type | Method and Description |
---|---|
void |
add(IEntity entity) |
IEntity |
add(java.lang.String name) |
void |
add(java.lang.String[] names) |
void |
addErrorListener(IErrorListener l) |
void |
addListStateListener(IListStateListener l)
Add a listener on the refresher state.
|
void |
addRefresherListener(IRefresherListener l)
Add a listener on the refresher.
|
void |
addSetErrorListener(ISetErrorListener l) |
void |
clear() |
void |
clearListStateListener() |
boolean |
contains(java.lang.Object elem) |
java.lang.Object |
elementAt(int index) |
java.lang.Object |
get(int index) |
IEntity |
get(java.lang.String attributeName) |
java.util.List<IEntity> |
get(java.lang.String[] names) |
java.lang.Object |
getElementAt(int index) |
IEntityFilter |
getFilter() |
int |
getRefreshInterval()
getRefreshInterval gets the refresh-interval for
the entity list. |
int |
getSize() |
java.lang.String |
getVersion() |
int |
indexOf(java.lang.Object elem) |
boolean |
isRefresherStarted() |
void |
refresh()
refresh refreshes the EntityList, that is, it asks
all its entities to poll its Tango peer to see if its value has
changed. |
boolean |
remove(java.lang.String entityName) |
void |
removeErrorListener(IErrorListener errl)
Remove an ErrorListener for all entities in the entitylist.
|
void |
removeListStateListener(IListStateListener l) |
void |
removeRefresherListener(IRefresherListener l) |
void |
removeSetErrorListener(ISetErrorListener setErrl)
Remove a SetErrorListener for all entities in the entitylist.
|
void |
setFilter(IEntityFilter filter)
setFilter to filter out which IEntities
should be added to the list and which should not be added. |
void |
setRefresher(Refresher r)
setRefresher sets the resher thread
for this EntityList. |
void |
setRefreshInterval(int milliSeconds)
setRefreshInterval sets the refresh interval for
the EntityList. |
void |
setSynchronizedPeriod(boolean synchro) |
void |
setTraceUnexpected(boolean trace) |
int |
size() |
void |
startRefresher()
startRefresher starts the default refresher thread
for the entity list,which sleeps for refreshInterval seconds. |
void |
stopRefresher() |
void setRefreshInterval(int milliSeconds)
setRefreshInterval
sets the refresh interval for
the EntityList. This interval decides how often an entity is polled
to see if its value has changed. The default value is 1000, that is,
the entity is polled once a second.milliSeconds
- an int
valueint getRefreshInterval()
getRefreshInterval
gets the refresh-interval for
the entity list. The default value is 1000 milliseconds.int
value which is the refresh-intervalvoid refresh()
refresh
refreshes the EntityList, that is, it asks
all its entities to poll its Tango peer to see if its value has
changed.boolean isRefresherStarted()
void stopRefresher()
void startRefresher()
startRefresher
starts the default refresher thread
for the entity list,which sleeps for refreshInterval seconds.AEntityList.setRefreshInterval(int)
,
Thread
void setRefresher(Refresher r)
setRefresher
sets the resher thread
for this EntityList.r
- an Refresher
valueRefresher
void setFilter(IEntityFilter filter)
setFilter
to filter out which IEntities
should be added to the list and which should not be added.filter
- an IEntityFilter
valueIEntityFilter
IEntityFilter getFilter()
java.util.List<IEntity> get(java.lang.String[] names)
IEntity get(java.lang.String attributeName)
void add(java.lang.String[] names) throws ConnectionException
ConnectionException
void add(IEntity entity)
IEntity add(java.lang.String name) throws ConnectionException
ConnectionException
boolean remove(java.lang.String entityName)
void addErrorListener(IErrorListener l)
void addSetErrorListener(ISetErrorListener l)
void removeErrorListener(IErrorListener errl)
errl
- Error Listenervoid removeSetErrorListener(ISetErrorListener setErrl)
setErrl
- SetError Listenervoid addRefresherListener(IRefresherListener l)
l
- Refresher listenervoid removeRefresherListener(IRefresherListener l)
void addListStateListener(IListStateListener l)
l
- ListState listenervoid removeListStateListener(IListStateListener l)
void clearListStateListener()
java.lang.String getVersion()
void setSynchronizedPeriod(boolean synchro)
void setTraceUnexpected(boolean trace)
int size()
int getSize()
java.lang.Object getElementAt(int index)
java.lang.Object get(int index)
java.lang.Object elementAt(int index)
void clear()
boolean contains(java.lang.Object elem)
int indexOf(java.lang.Object elem)