org.hwo.pulscounter/src/org/hwo/pulscounter/IPulsCounter.java

31 lines
1020 B
Java
Raw Normal View History

2014-10-20 21:32:52 +02:00
package org.hwo.pulscounter;
2015-06-25 00:04:13 +02:00
import org.hwo.bitfields.BitField;
import org.hwo.io.SerialPortExeption;
2014-10-20 21:32:52 +02:00
public interface IPulsCounter {
public String[] getDeviceName();
2015-06-25 00:04:13 +02:00
public void close();
public int getChannels() throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public String getChannelName(Integer channel) throws SerialPortExeption;
public void setChannelName(Integer channel,String name) throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public int[] getChannelCounters() throws SerialPortExeption;
public void setChannelCounter(Integer channel,Integer count) throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public int[] getChannelOffsets() throws SerialPortExeption;
public void setChannelOffset(Integer channel,Integer offset) throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public String getPhysicalInterfaceName() throws SerialPortExeption;
public void setPhysicalInterfaceName(String interfaceName) throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public String[] getPhysicalInterfaceNames() throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
2015-06-25 00:04:13 +02:00
public Integer getPhysicalInputs() throws SerialPortExeption;
2014-10-20 21:32:52 +02:00
}