org.hwo.pulscounter/src/org/hwo/pulscounter/PulsCounterInterface.java

37 lines
501 B
Java
Raw Normal View History

2014-01-24 11:41:56 +01:00
package org.hwo.pulscounter;
import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Date;
2014-01-24 11:41:56 +01:00
import java.util.List;
2014-08-26 14:23:09 +02:00
import java.util.ServiceLoader;
2014-01-24 11:41:56 +01:00
public class PulsCounterInterface {
public PulsCounterInterface(String portName)
{
2014-08-26 14:23:09 +02:00
2014-01-24 11:41:56 +01:00
}
public List<Integer> readCounter()
{
ArrayList<Integer> counter = new ArrayList<Integer>();
/*
if (port.open())
{
port.close();
}
*/
for (int i=0;i<32;i++)
counter.add( i * i);
return counter;
}
2014-01-24 11:41:56 +01:00
}