|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavafish.clients.opc.component.OpcItem
public class OpcItem
OPC Item class
| Constructor Summary | |
|---|---|
OpcItem(java.lang.String itemName,
boolean active,
java.lang.String accessPath)
Create new instance of OPCItem |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Return clone of opc-item |
void |
generateClientHandleByOwner(OpcGroup group)
Generate clientHandle by its owner. |
java.lang.String |
getAccessPath()
Get access path of item |
int |
getClientHandle()
Get client handle of item (unique key) |
int |
getDataType()
Get item type |
java.lang.String |
getItemName()
Get item name |
java.util.GregorianCalendar |
getTimeStamp()
Get time stamp of downloaded item |
Variant |
getValue()
Get value (Variant) |
boolean |
isActive()
Get activity of OpcItem |
boolean |
isQuality()
Get quality of downloaded item. |
void |
setActive(boolean active)
Set activity of group |
void |
setQuality(boolean itemQuality)
Set quality of downloaded item |
void |
setTimeStamp(java.util.GregorianCalendar timeStamp)
Set time stamp of downloaded item |
void |
setValue(Variant itemValue)
Set value (Variant) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OpcItem(java.lang.String itemName,
boolean active,
java.lang.String accessPath)
itemName - String - specific Tag name of itemactive - boolean - begin activity of itemaccessPath - String - accessPath is the "how" for the server to get the
data specified by the itemName (ItemID, the what). The client uses this function
to identify the possible access paths for the specified ItemID (similary with namespaces).
Not all Opc Serves support these access paths.| Method Detail |
|---|
public void generateClientHandleByOwner(OpcGroup group)
It is internal method for generation of unique item ID.
group - OpcGrouppublic void setActive(boolean active)
active - booleanpublic boolean isActive()
public boolean isQuality()
The quality is very important flag. This flag has to be checked, because you have to handle only correct values. The item can have some values, but the quality has to be true.
public void setQuality(boolean itemQuality)
itemQuality - booleanpublic Variant getValue()
public void setValue(Variant itemValue)
itemValue - Variantpublic java.util.GregorianCalendar getTimeStamp()
public void setTimeStamp(java.util.GregorianCalendar timeStamp)
timeStamp - GregorianCalendarpublic java.lang.String getAccessPath()
public int getClientHandle()
public int getDataType()
public java.lang.String getItemName()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||