Revision: 43123
          http://brlcad.svn.sourceforge.net/brlcad/?rev=43123&view=rev
Author:   davidloman
Date:     2011-02-08 18:30:36 +0000 (Tue, 08 Feb 2011)

Log Message:
-----------
Move GSClient into proper package structure.

Added Paths:
-----------
    
geomcore/trunk/src/interfaces/java/src/org/brlcad/geometryservice/GSClient.java

Removed Paths:
-------------
    geomcore/trunk/src/interfaces/java/GSClient.java

Property Changed:
----------------
    geomcore/trunk/src/interfaces/java/


Property changes on: geomcore/trunk/src/interfaces/java
___________________________________________________________________
Added: svn:ignore
   + .classpath
.project


Deleted: geomcore/trunk/src/interfaces/java/GSClient.java
===================================================================
--- geomcore/trunk/src/interfaces/java/GSClient.java    2011-02-08 18:25:06 UTC 
(rev 43122)
+++ geomcore/trunk/src/interfaces/java/GSClient.java    2011-02-08 18:30:36 UTC 
(rev 43123)
@@ -1,139 +0,0 @@
-/*                  G S C L I E N T . J A V A
- * BRL-CAD
- *
- * Copyright (c) 2011 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file GSClient.java
- *
- */
-
-package org.brlcad.GS;
-
-public class GSClient {
-
-    private static final int Magic1 = 0x000041FE;
-    private static final int Magic2 = 0x00005309;
-
-    private static final short Failure = 0x0050;
-    private static final short Success = 0x0051;
-    private static final short RemHostNameSET = 0x0100;
-    private static final short DisconnectREQ = 0x0150;
-    private static final short NewHostOnNet = 0x0200;
-    private static final short FullHostListREQ = 0x0250;
-    private static final short FullHostList = 0x0255;
-    private static final short NewSessionREQ = 0x0300;
-    private static final short NewSession = 0x0305;
-    private static final short LogoutSession = 0x0310;
-    private static final short GeometryREQ = 0x0400;
-    private static final short GeometryMANIFEST = 0x0405;
-    private static final short GeometryCHUNK = 0x0410;
-
-    public enum fmt { BOT, ARB, BOTARB, NURBS, OTHER };
-
-    GSClient() {
-       super();
-       /* maybe this shouldn't exist? */
-    }
-
-    GSClient(String URI) {
-       super();
-       /* parse crud out and make a connection. Maybe use port/host, then
-        * attach the pertinent other info? */
-    }
-
-    GSClient(String host, int port) {
-       super();
-       /* connect to a geometry server, maybe should build a URI? */
-    }
-
-    /**
-     * Get the latest revision ID of the requested object.
-     */
-    public String getLatestRevision() {
-       return "4";
-    }
-
-    public java.util.Date getLastModified() {
-       return new java.util.Date(System.currentTimeMillis());
-    }
-    
-    public String getLastEditor() {
-       return "Beavis";
-    }
-
-    /**
-     * Get an image of the geometry (possibly raytraced)
-     */
-    public java.awt.image.BufferedImage getPhoto() {
-       return null;
-    }
-
-    /**
-     * Get the line drawing (probably rtedge)
-     */
-    public java.awt.image.BufferedImage getLineDrawing() {
-       return null;
-    }
-
-    /**
-     * Get the raw .g file data.
-     */
-    public java.nio.ByteBuffer getG() {
-       return null;
-    }
-
-    public String getOriginator() {
-       return "Somebody";
-    }
-
-    public int getFileLen() {
-       return 4;
-    }
-
-    /* should this be more like an enum? number? */
-    public String getLOD() {
-       return "Low";
-    }
-
-    /**
-     * Return the confidence in the geometry description integrity.
-     */
-    public double getMagicHappyFuzzyFeeling() {
-       return 0.0;
-    }
-
-    public boolean getIsdirectMeasurement() {
-       return true;
-    }
-
-    public String getOriginalFormat() {
-       return "BRL-CAD";
-    }
-
-    /**
-     * Return the name of the conversion utility used on this.
-     */
-    public String getConverter() {
-       return "Native";
-    }
-
-    /* bot, arb, mixture of bot and arb, and ... other? nurbs? something? does
-     * this even make sense? */
-    public fmt getFormat() {
-       return fmt.OTHER;
-    }
-}

Copied: 
geomcore/trunk/src/interfaces/java/src/org/brlcad/geometryservice/GSClient.java 
(from rev 43119, geomcore/trunk/src/interfaces/java/GSClient.java)
===================================================================
--- 
geomcore/trunk/src/interfaces/java/src/org/brlcad/geometryservice/GSClient.java 
                            (rev 0)
+++ 
geomcore/trunk/src/interfaces/java/src/org/brlcad/geometryservice/GSClient.java 
    2011-02-08 18:30:36 UTC (rev 43123)
@@ -0,0 +1,139 @@
+/*                  G S C L I E N T . J A V A
+ * BRL-CAD
+ *
+ * Copyright (c) 2011 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file GSClient.java
+ *
+ */
+
+package org.brlcad.geometryservice;
+
+public class GSClient {
+
+    private static final int Magic1 = 0x000041FE;
+    private static final int Magic2 = 0x00005309;
+
+    private static final short Failure = 0x0050;
+    private static final short Success = 0x0051;
+    private static final short RemHostNameSET = 0x0100;
+    private static final short DisconnectREQ = 0x0150;
+    private static final short NewHostOnNet = 0x0200;
+    private static final short FullHostListREQ = 0x0250;
+    private static final short FullHostList = 0x0255;
+    private static final short NewSessionREQ = 0x0300;
+    private static final short NewSession = 0x0305;
+    private static final short LogoutSession = 0x0310;
+    private static final short GeometryREQ = 0x0400;
+    private static final short GeometryMANIFEST = 0x0405;
+    private static final short GeometryCHUNK = 0x0410;
+
+    public enum fmt { BOT, ARB, BOTARB, NURBS, OTHER };
+
+    GSClient() {
+       super();
+       /* maybe this shouldn't exist? */
+    }
+
+    GSClient(String URI) {
+       super();
+       /* parse crud out and make a connection. Maybe use port/host, then
+        * attach the pertinent other info? */
+    }
+
+    GSClient(String host, int port) {
+       super();
+       /* connect to a geometry server, maybe should build a URI? */
+    }
+
+    /**
+     * Get the latest revision ID of the requested object.
+     */
+    public String getLatestRevision() {
+       return "4";
+    }
+
+    public java.util.Date getLastModified() {
+       return new java.util.Date(System.currentTimeMillis());
+    }
+    
+    public String getLastEditor() {
+       return "Beavis";
+    }
+
+    /**
+     * Get an image of the geometry (possibly raytraced)
+     */
+    public java.awt.image.BufferedImage getPhoto() {
+       return null;
+    }
+
+    /**
+     * Get the line drawing (probably rtedge)
+     */
+    public java.awt.image.BufferedImage getLineDrawing() {
+       return null;
+    }
+
+    /**
+     * Get the raw .g file data.
+     */
+    public java.nio.ByteBuffer getG() {
+       return null;
+    }
+
+    public String getOriginator() {
+       return "Somebody";
+    }
+
+    public int getFileLen() {
+       return 4;
+    }
+
+    /* should this be more like an enum? number? */
+    public String getLOD() {
+       return "Low";
+    }
+
+    /**
+     * Return the confidence in the geometry description integrity.
+     */
+    public double getMagicHappyFuzzyFeeling() {
+       return 0.0;
+    }
+
+    public boolean getIsdirectMeasurement() {
+       return true;
+    }
+
+    public String getOriginalFormat() {
+       return "BRL-CAD";
+    }
+
+    /**
+     * Return the name of the conversion utility used on this.
+     */
+    public String getConverter() {
+       return "Native";
+    }
+
+    /* bot, arb, mixture of bot and arb, and ... other? nurbs? something? does
+     * this even make sense? */
+    public fmt getFormat() {
+       return fmt.OTHER;
+    }
+}


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to