public class Group extends Object
| Modifier and Type | Method and Description |
|---|---|
Item |
addItem(String item)
Add a single item.
|
Map<String,Item> |
addItems(String... items)
Add new items to the group
|
EventHandler |
attach(IOPCDataCallback dataCallback) |
protected void |
checkItems(Item[] items) |
void |
clear() |
Item |
findItemByClientHandle(int clientHandle) |
OPCAsyncIO2 |
getAsyncIO20() |
protected Item |
getItemByOPCItemId(String opcItemId) |
String |
getName()
Get the group name from the server
|
Server |
getServer() |
int |
getServerHandle() |
protected Integer[] |
getServerHandles(Item[] items) |
boolean |
isActive() |
Map<Item,ItemState> |
read(boolean device,
Item... items) |
void |
remove()
remove the group from the server
|
void |
removeItem(String opcItemId) |
void |
setActive(boolean state) |
void |
setActive(boolean state,
Item... items) |
void |
setName(String name)
Change the group name
|
Map<String,Result<OPCITEMRESULT>> |
validateItems(String... items)
Validate item ids and get additional information to them.
|
Map<Item,Integer> |
write(WriteRequest... requests) |
public void setActive(boolean state)
throws JIException
JIExceptionpublic void remove()
throws JIException
JIExceptionpublic boolean isActive()
throws JIException
JIExceptionpublic String getName() throws JIException
JIExceptionpublic void setName(String name) throws JIException
name - the new name of the groupJIExceptionpublic Item addItem(String item) throws JIException, AddFailedException
addItems(String[]) with only
one paraemteritem - The item to addJIException - The add operation failedAddFailedException - The item was not added due to an errorpublic Map<String,Result<OPCITEMRESULT>> validateItems(String... items) throws JIException
items - The items to validateJIExceptionpublic Map<String,Item> addItems(String... items) throws JIException, AddFailedException
items - The items (by string id) to addJIException - The add operation completely failed. No item was added.AddFailedException - If one or more item could not be added. Item without error where added.protected void checkItems(Item[] items)
public void setActive(boolean state,
Item... items)
throws JIException
JIExceptionpublic Map<Item,Integer> write(WriteRequest... requests) throws JIException
JIExceptionpublic Map<Item,ItemState> read(boolean device, Item... items) throws JIException
JIExceptionpublic Server getServer()
public void clear()
throws JIException
JIExceptionpublic OPCAsyncIO2 getAsyncIO20()
public EventHandler attach(IOPCDataCallback dataCallback) throws JIException
JIExceptionpublic Item findItemByClientHandle(int clientHandle)
public int getServerHandle()
public void removeItem(String opcItemId) throws IllegalArgumentException, UnknownHostException, JIException
Copyright © 2017 LSST. All rights reserved.