Package org.scictrl.csshell
Class SoftDeviceImpl
java.lang.Object
org.scictrl.csshell.SoftDeviceImpl
- All Implemented Interfaces:
Device
Implementation of Device interface, which allows building custom device from channels.
- Author:
- igor@scictrl.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChannel
(String name, Connection<AbstractConnector<?>, ?, ?> chan) addChannel.Connection
<AbstractConnector<?>, ?, ?> getChannel
(String name) getChannel.String[]
getChannelNames.Connection<AbstractConnector<?>,
?, ?>[] getChannels.getName()
getName.getType()
getType.
-
Constructor Details
-
Method Details
-
getName
getName.
-
getType
getType.
-
getChannelNames
getChannelNames.
- Specified by:
getChannelNames
in interfaceDevice
- Returns:
- an array of
String
objects
-
getChannel
getChannel.
- Specified by:
getChannel
in interfaceDevice
- Parameters:
name
- aString
object- Returns:
- a
Connection
object
-
getChannels
getChannels.
- Specified by:
getChannels
in interfaceDevice
- Returns:
- an array of
Connection
objects
-
addChannel
addChannel.
- Parameters:
name
- aString
objectchan
- aConnection
object
-