|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.pvlogger.ChannelGroup
ChannelGroup is a wrapper for the PV_SET data source which defines a group of related PVs.
| Nested Class Summary | |
protected class |
ChannelGroup.ConnectionHandler
|
| Field Summary | |
protected ChannelWrapper[] |
_channelWrappers
array of channel wrappers |
protected ChannelGroup.ConnectionHandler |
_connectionHandler
handler of channel connection events |
protected double |
DEFAULT_LOGGING_PERIOD
default logging period (seconds) for the group |
protected java.lang.String |
DESCRIPTION
description of the channel group |
protected java.lang.String |
LABEL
label of the channel group |
| Constructor Summary | |
ChannelGroup(java.lang.String groupLabel,
java.lang.String[] pvs,
double loggingPeriod)
Constructor |
|
ChannelGroup(java.lang.String label,
java.lang.String description,
java.lang.String[] pvs,
double loggingPeriod)
Constructor |
|
| Method Summary | |
void |
dispose()
Dispose of this channel group's resources |
int |
getChannelCount()
Get the number of channels in this group |
java.util.Collection |
getChannels()
Get the collection of channels which we attempt to monitor |
ChannelWrapper[] |
getChannelWrappers()
Get the channel wrappers for the channels associated with this group. |
double |
getDefaultLoggingPeriod()
Get the default logging period for this group |
java.lang.String |
getDescription()
Get a description of the group |
java.lang.String |
getLabel()
Get the group label. |
java.util.Date |
getLastChannelEventTime()
Get the timestamp of the last channel event (e.g. |
java.lang.String |
toString()
Override toString() to return the group label and a description |
protected void |
wrapPVs(java.lang.String[] pvs)
Create ChannelWrappers for the specified pvs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final double DEFAULT_LOGGING_PERIOD
protected final java.lang.String LABEL
protected final java.lang.String DESCRIPTION
protected ChannelWrapper[] _channelWrappers
protected ChannelGroup.ConnectionHandler _connectionHandler
| Constructor Detail |
public ChannelGroup(java.lang.String label,
java.lang.String description,
java.lang.String[] pvs,
double loggingPeriod)
label - The group's labeldescription - A description of the grouppvs - The PVs in the grouploggingPeriod - The default logging period for the group
public ChannelGroup(java.lang.String groupLabel,
java.lang.String[] pvs,
double loggingPeriod)
groupLabel - The group's labelpvs - The PVs in the grouploggingPeriod - The default logging period for the group| Method Detail |
public void dispose()
public java.lang.String getLabel()
public java.lang.String getDescription()
public double getDefaultLoggingPeriod()
protected void wrapPVs(java.lang.String[] pvs)
pvs - the list of PVs to wrappublic ChannelWrapper[] getChannelWrappers()
public java.util.Collection getChannels()
public int getChannelCount()
public java.util.Date getLastChannelEventTime()
public 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 | |||||||||