-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-package TUIO;
-
-import com.illposed.osc.*;
-import java.util.*;
-
-/**
- * The TuioClient class is the central TUIO protocol decoder component. It provides a simple callback infrastructure using the {@link TuioListener} interface.
- * In order to receive and decode TUIO messages an instance of TuioClient needs to be created. The TuioClient instance then generates TUIO events
- * which are broadcasted to all registered classes that implement the {@link TuioListener} interface.
- *
- * TuioClient client = new TuioClient();
- * client.addTuioListener(myTuioListener);
- * client.connect();
- *
- *
- * @author Martin Kaltenbrunner
- * @version 1.4
- */
-public class TuioClient implements OSCListener {
-
- public String comm;
-
- private int port = 3333;
- private OSCPortIn oscPort;
- private boolean connected = false;
- private Hashtable objectList = new Hashtable();
- private Vector aliveObjectList = new Vector();
- private Vector newObjectList = new Vector();
- private Hashtable cursorList = new Hashtable();
- private Vector aliveCursorList = new Vector();
- private Vector newCursorList = new Vector();
- private Hashtable stringList = new Hashtable();
- private Vector aliveStringList = new Vector();
- private Vector newStringList = new Vector();
-
- private Vector frameObjects = new Vector();
- private Vector frameCursors = new Vector();
- private Vector frameStrings = new Vector