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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannel(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:
getChannelNamesin interfaceDevice- Returns:
- an array of
Stringobjects
-
getChannel
getChannel.
- Specified by:
getChannelin interfaceDevice- Parameters:
name- aStringobject- Returns:
- a
Connectionobject
-
getChannels
getChannels.
- Specified by:
getChannelsin interfaceDevice- Returns:
- an array of
Connectionobjects
-
addChannel
addChannel.
- Parameters:
name- aStringobjectchan- aConnectionobject
-