Bug fix, Optimized imports, Changed Timer to ExecutorService

Former-commit-id: b23ccf25f1f121589bd8887dbe833b95db4d2b24
This commit is contained in:
Ziver Koc 2015-12-18 17:20:33 +01:00
parent d635888742
commit 405d7ebf02
25 changed files with 122 additions and 153 deletions

View file

@ -1,12 +1,6 @@
package se.koc.hal.plugin.tellstick;
import se.koc.hal.plugin.tellstick.protocols.NexaSelfLearning;
import se.koc.hal.plugin.tellstick.protocols.Oregon0x1A2D;
import zutil.db.DBConnection;
import zutil.log.LogUtil;
import java.sql.SQLException;
import java.util.logging.Logger;
/**
* Created by Ziver on 2015-11-19.

View file

@ -1,7 +1,5 @@
package se.koc.hal.plugin.tellstick;
import se.koc.hal.plugin.tellstick.TellstickSerialComm;
import se.koc.hal.plugin.tellstick.protocols.NexaSelfLearning;
import se.koc.hal.plugin.tellstick.protocols.Oregon0x1A2D;
import zutil.db.DBConnection;
import zutil.log.CompactLogFormatter;

View file

@ -22,7 +22,6 @@
package se.koc.hal.plugin.tellstick.protocols;
import se.koc.hal.plugin.tellstick.protocols.NexaSelfLearning;
import zutil.converters.Converter;
import static org.junit.Assert.*;

View file

@ -22,11 +22,10 @@
package se.koc.hal.test;
import java.net.URL;
import edu.cmu.sphinx.api.Configuration;
import edu.cmu.sphinx.api.LiveSpeechRecognizer;
import edu.cmu.sphinx.api.SpeechResult;
import edu.cmu.sphinx.result.WordResult;
import edu.cmu.sphinx.api.LiveSpeechRecognizer;
public class LiveSpeechRecognizerTest {

View file

@ -22,20 +22,15 @@
package se.koc.hal.test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import com.darkprograms.speech.microphone.MicrophoneAnalyzer;
import edu.cmu.sphinx.api.Configuration;
import edu.cmu.sphinx.api.SpeechResult;
import edu.cmu.sphinx.api.StreamSpeechRecognizer;
import edu.cmu.sphinx.decoder.adaptation.Stats;
import edu.cmu.sphinx.decoder.adaptation.Transform;
import edu.cmu.sphinx.result.WordResult;
import net.didion.jwnl.data.Exc;
import javax.sound.sampled.AudioFileFormat;
import java.io.File;
import java.io.FileInputStream;
/**
* A simple example that shows how to transcribe a continuous audio file that

9
test/se/koc/hal/util/TimeUtilityTest.java Normal file → Executable file
View file

@ -1,12 +1,11 @@
package se.koc.hal.util;
import static org.junit.Assert.*;
import java.util.Calendar;
import org.junit.Before;
import org.junit.Test;
import se.koc.hal.util.TimeUtility;
import java.util.Calendar;
import static org.junit.Assert.assertEquals;
public class TimeUtilityTest {
private long currentTime_UTC;