Revision: 145
http://polepos.svn.sourceforge.net/polepos/?rev=145&view=rev
Author: carlrosenberger
Date: 2010-11-29 14:16:04 +0000 (Mon, 29 Nov 2010)
Log Message:
-----------
cr + pr: starting on Complex circuit
Added Paths:
-----------
trunk/polepos/src/org/polepos/circuits/complex/
trunk/polepos/src/org/polepos/circuits/complex/Complex.java
trunk/polepos/src/org/polepos/data/ComplexHolder0.java
trunk/polepos/src/org/polepos/data/ComplexHolder1.java
trunk/polepos/src/org/polepos/data/ComplexHolder2.java
trunk/polepos/src/org/polepos/data/ComplexHolder3.java
trunk/polepos/src/org/polepos/data/ComplexHolder4.java
trunk/polepos/src/org/polepos/teams/db4o/ComplexDb4o.java
Added: trunk/polepos/src/org/polepos/circuits/complex/Complex.java
===================================================================
--- trunk/polepos/src/org/polepos/circuits/complex/Complex.java (rev 0)
+++ trunk/polepos/src/org/polepos/circuits/complex/Complex.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,42 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.circuits.complex;
+
+import org.polepos.framework.*;
+
+public interface Complex {
+
+ @Order(1)
+ public void write();
+
+ @Order(2)
+ public void read();
+
+ @Order(3)
+ public void query();
+
+ @Order(4)
+ public void update();
+
+ @Order(5)
+ public void delete();
+
+}
Property changes on: trunk/polepos/src/org/polepos/circuits/complex/Complex.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/data/ComplexHolder0.java
===================================================================
--- trunk/polepos/src/org/polepos/data/ComplexHolder0.java (rev 0)
+++ trunk/polepos/src/org/polepos/data/ComplexHolder0.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,99 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.data;
+
+import java.util.*;
+
+import com.db4o.foundation.*;
+
+public class ComplexHolder0 {
+
+ private ComplexHolder0 _child;
+
+ private String _name;
+
+ private List<ComplexHolder0> _children;
+
+ private ComplexHolder0[] _array;
+
+
+ public static ComplexHolder0 generate(int depth, int leafs){
+ ComplexHolder0 complexHolder = new ComplexHolder0();
+ complexHolder._children = new ArrayList<ComplexHolder0>();
+ complexHolder._name = "root";
+ complexHolder._child = new ComplexHolder0();
+ createChildren(depth -1, leafs);
+ return complexHolder;
+ }
+
+
+ private static void createChildren(int depth, int leafs) {
+ if(depth < 1){
+ return;
+ }
+ // _array = new ComplexHolder0[depth];
+
+
+ for (int i = 0; i < depth; i++) {
+
+
+
+ }
+ // TODO Auto-generated method stub
+
+ }
+
+
+ private static final Closure4[] FACTORIES = {
+ new Closure4(){
+ @Override
+ public Object run() {
+ return new ComplexHolder0();
+ }
+ },
+ new Closure4(){
+ @Override
+ public Object run() {
+ return new ComplexHolder1();
+ }
+ },
+ new Closure4(){
+ @Override
+ public Object run() {
+ return new ComplexHolder2();
+ }
+ },
+ new Closure4(){
+ @Override
+ public Object run() {
+ return new ComplexHolder3();
+ }
+ },
+ new Closure4(){
+ @Override
+ public Object run() {
+ return new ComplexHolder4();
+ }
+ }
+ };
+
+
+}
Property changes on: trunk/polepos/src/org/polepos/data/ComplexHolder0.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/data/ComplexHolder1.java
===================================================================
--- trunk/polepos/src/org/polepos/data/ComplexHolder1.java (rev 0)
+++ trunk/polepos/src/org/polepos/data/ComplexHolder1.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,25 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.data;
+
+public class ComplexHolder1 {
+
+}
Property changes on: trunk/polepos/src/org/polepos/data/ComplexHolder1.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/data/ComplexHolder2.java
===================================================================
--- trunk/polepos/src/org/polepos/data/ComplexHolder2.java (rev 0)
+++ trunk/polepos/src/org/polepos/data/ComplexHolder2.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,25 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.data;
+
+public class ComplexHolder2 {
+
+}
Property changes on: trunk/polepos/src/org/polepos/data/ComplexHolder2.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/data/ComplexHolder3.java
===================================================================
--- trunk/polepos/src/org/polepos/data/ComplexHolder3.java (rev 0)
+++ trunk/polepos/src/org/polepos/data/ComplexHolder3.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,25 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.data;
+
+public class ComplexHolder3 {
+
+}
Property changes on: trunk/polepos/src/org/polepos/data/ComplexHolder3.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/data/ComplexHolder4.java
===================================================================
--- trunk/polepos/src/org/polepos/data/ComplexHolder4.java (rev 0)
+++ trunk/polepos/src/org/polepos/data/ComplexHolder4.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,25 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.data;
+
+public class ComplexHolder4 {
+
+}
Property changes on: trunk/polepos/src/org/polepos/data/ComplexHolder4.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/polepos/src/org/polepos/teams/db4o/ComplexDb4o.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/db4o/ComplexDb4o.java (rev 0)
+++ trunk/polepos/src/org/polepos/teams/db4o/ComplexDb4o.java 2010-11-29 14:16:04 UTC (rev 145)
@@ -0,0 +1,68 @@
+/*
+This file is part of the PolePosition database benchmark
+http://www.polepos.org
+
+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 org.polepos.teams.db4o;
+
+import org.polepos.circuits.complex.*;
+import org.polepos.data.*;
+
+import com.db4o.config.*;
+
+public class ComplexDb4o extends Db4oDriver implements Complex {
+
+ @Override
+ public void write() {
+
+ ComplexHolder0 root = ComplexHolder0.generate(depth(), objectCount());
+ store(root);
+
+ }
+
+ @Override
+ public void read() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void query() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void update() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void configure(Configuration config) {
+
+ }
+
+
+}
Property changes on: trunk/polepos/src/org/polepos/teams/db4o/ComplexDb4o.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|