public class Channel extends Object
| Constructor and Description |
|---|
Channel(org.ogema.core.channelmanager.driverspi.ChannelLocator locator,
Device dev) |
| Modifier and Type | Method and Description |
|---|---|
org.ogema.core.channelmanager.driverspi.ChannelLocator |
getChannelLocator() |
org.ogema.core.channelmanager.measurements.SampledValue |
readValue(Connection connection)
Implementation for synchronous read from LL to OGEMA
|
void |
removeUpdateListener()
removes listener for asynchronous channel.
|
void |
setEventListener(org.ogema.core.channelmanager.driverspi.SampledValueContainer container,
org.ogema.core.channelmanager.driverspi.ChannelUpdateListener listener)
Sets listener for asynchronous channel.
|
void |
updateListener()
updates listener for asynchronous channel.
|
void |
writeValue(Connection connection,
org.ogema.core.channelmanager.measurements.Value value)
Implementation for synchronous and asynchronous write from OGEMA to LL.
|
public Channel(org.ogema.core.channelmanager.driverspi.ChannelLocator locator,
Device dev)
public org.ogema.core.channelmanager.measurements.SampledValue readValue(Connection connection) throws IOException, UnsupportedOperationException
connection - IOExceptionUnsupportedOperationExceptionpublic void writeValue(Connection connection, org.ogema.core.channelmanager.measurements.Value value) throws IOException, UnsupportedOperationException
connection - value - IOExceptionUnsupportedOperationExceptionpublic void setEventListener(org.ogema.core.channelmanager.driverspi.SampledValueContainer container,
org.ogema.core.channelmanager.driverspi.ChannelUpdateListener listener)
throws IOException,
UnsupportedOperationException
container - listener - IOExceptionUnsupportedOperationExceptionpublic void removeUpdateListener()
public void updateListener()
public org.ogema.core.channelmanager.driverspi.ChannelLocator getChannelLocator()
Copyright © 2019. All rights reserved.