bprocessor-commit Mailing List for B-processor (Page 4)
Status: Pre-Alpha
Brought to you by:
henryml
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(12) |
Jul
(117) |
Aug
(151) |
Sep
(157) |
Oct
(81) |
Nov
(117) |
Dec
(119) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(183) |
Feb
(130) |
Mar
(117) |
Apr
(61) |
May
(82) |
Jun
(45) |
Jul
(149) |
Aug
(173) |
Sep
(199) |
Oct
(165) |
Nov
(107) |
Dec
(137) |
| 2007 |
Jan
(124) |
Feb
(58) |
Mar
(123) |
Apr
(80) |
May
(130) |
Jun
(64) |
Jul
(31) |
Aug
(42) |
Sep
(114) |
Oct
(167) |
Nov
(239) |
Dec
(200) |
| 2008 |
Jan
(43) |
Feb
(43) |
Mar
(4) |
Apr
(9) |
May
(5) |
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
(13) |
Oct
(9) |
Nov
(12) |
Dec
|
| 2009 |
Jan
|
Feb
(20) |
Mar
(7) |
Apr
(12) |
May
(34) |
Jun
(72) |
Jul
|
Aug
(3) |
Sep
(31) |
Oct
(2) |
Nov
(8) |
Dec
(4) |
| 2010 |
Jan
(5) |
Feb
(32) |
Mar
(8) |
Apr
(7) |
May
(36) |
Jun
|
Jul
(11) |
Aug
(15) |
Sep
(7) |
Oct
(2) |
Nov
(13) |
Dec
(80) |
| 2011 |
Jan
|
Feb
|
Mar
(8) |
Apr
(12) |
May
(32) |
Jun
(9) |
Jul
(5) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(8) |
| 2012 |
Jan
|
Feb
|
Mar
(3) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(22) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Michael L. <he...@us...> - 2011-05-18 22:08:43
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory vz-cvs-2.sog:/tmp/cvs-serv27660/src/net/sourceforge/bprocessor/gl/view
Modified Files:
PopupMenu.java
Log Message:
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/PopupMenu.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** PopupMenu.java 13 Apr 2011 08:14:49 -0000 1.51
--- PopupMenu.java 18 May 2011 22:08:41 -0000 1.52
***************
*** 257,261 ****
Space owner = target.getOwner();
owner.add(command);
! AttributeView.instance().display(command);
Project.getInstance().checkpoint();
Project.getInstance().changed();
--- 257,261 ----
Space owner = target.getOwner();
owner.add(command);
! //AttributeView.instance().display(command);
Project.getInstance().checkpoint();
Project.getInstance().changed();
|
|
From: Michael L. <he...@us...> - 2011-05-18 22:08:40
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory vz-cvs-2.sog:/tmp/cvs-serv27649/src/net/sourceforge/bprocessor/gui
Modified Files:
GUI.java
Log Message:
Index: GUI.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -d -r1.126 -r1.127
*** GUI.java 5 May 2011 10:22:52 -0000 1.126
--- GUI.java 18 May 2011 22:08:38 -0000 1.127
***************
*** 26,29 ****
--- 26,30 ----
import javax.swing.AbstractAction;
+ import javax.swing.Box;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
***************
*** 102,105 ****
--- 103,109 ----
private JSplitPane splitPaneMiddleRight;
+ private Box controlPanels;
+
+
/** The splash */
private SplashWindow plash;
***************
*** 861,864 ****
--- 865,877 ----
splitPaneLeftRight.setDividerSize(7);
splitPaneLeftRight.setRightComponent(splitPaneMiddleRight);
+
+ JPanel holder = new JPanel(new BorderLayout());
+ controlPanels = Box.createVerticalBox();
+ holder.add(controlPanels, BorderLayout.NORTH);
+ JPanel vfiller = new JPanel();
+ vfiller.setPreferredSize(new Dimension(240, 640));
+ holder.add(BorderLayout.SOUTH, vfiller);
+
+ splitPaneMiddleRight.setRightComponent(holder);
getContentPane().setLayout(new BorderLayout());
***************
*** 868,872 ****
makeTree();
! registerPanel(AttributeView.instance(), SPLIT_RIGHT);
}
--- 881,885 ----
makeTree();
! registerControlPanel(AttributeView.instance());
}
***************
*** 927,935 ****
splitPaneMiddleRight.setLeftComponent(panel);
} else {
! splitPaneMiddleRight.setRightComponent(panel);
}
}
/**
* Start the GUI
*/
--- 940,956 ----
splitPaneMiddleRight.setLeftComponent(panel);
} else {
! controlPanels.add(panel);
}
}
/**
+ * @param panel Component to add as control-panel
+ */
+ public void registerControlPanel(Component panel) {
+ controlPanels.add(Box.createVerticalStrut(10));
+ controlPanels.add(panel);
+ }
+
+ /**
* Start the GUI
*/
|
|
From: Sebastian G. <sg...@us...> - 2011-05-16 06:11:07
|
Update of /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages/physics
In directory vz-cvs-2.sog:/tmp/cvs-serv11353/src/net/sourceforge/bprocessor/packages/physics
Added Files:
PhysicsSurface.java PhysicsNet.java PhysicsPlane.java
PhysicsSpring.java PhysicsParticle.java PhysicsPackage.java
Log Message:
Hanging Chain Tools, Volume Calc
--- NEW FILE: PhysicsSpring.java ---
package net.sourceforge.bprocessor.packages.physics;
import net.sourceforge.bprocessor.model.Vertex;
//import net.sourceforge.bprocessor.model.plugin.PhysicsParticle;
public class PhysicsSpring {
//properties
PhysicsParticle pA; //Particle at one end of the spring
PhysicsParticle pB; //Particle at other end of the spring
double startL; //original starting length of Spring (generated from b-net)
double eql; //equilibrium length of the spring
double l; //actual length of the spring
double lLast; //last length of the spring
double c; //spring constant
double sf; //force value
double sf_damped; //force value
double restLengthFactor;//global factor - eql length in relation to cNet edge length
double restLengthScale; //local scaling of restlength (unique to spring)
Vertex fA; //force of the spring acting on Particle A
Vertex fB; //force of the spring acting on Particle B
//Constructor
PhysicsSpring(PhysicsParticle pA, PhysicsParticle pB, double eql, double c) {
this.pA = pA;
this.pB = pB;
this.eql = eql;
this.c = c;
this.l = getLength();
this.startL = this.l;
lLast = l;
sf = 0;
sf_damped = 0;
fA = new Vertex(0,0,0);
fB = new Vertex(0,0,0);
pA.connectSpring(this);
pB.connectSpring(this);
sf=0;
sf_damped = 0;
restLengthScale = 1.0;
}
//compute current length of spring
double getLength() {
double sl;
sl = pA.pos.distance(pB.pos);
return sl;
}
//compute current damping factor
double calcDamping(double time, double spring_damping) {
double damping;
//damping = v * spring_d = (distance / time) * spring_d
damping = (l-lLast)*spring_damping / time;
lLast = l;
return damping;
}
//compute spring force
void calcForce(double time, double spring_damping) {
sf = (l-(eql*restLengthFactor*restLengthScale))*c;
sf_damped = sf + calcDamping(time, spring_damping);
//get Vector from A to B and vice versa
fA = pB.pos.minus(pA.pos);
fB = pA.pos.minus(pB.pos);
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf_damped);
fB.scaleIt(sf_damped);
}
void update(double time, double spring_damping) {
l = getLength();
calcForce(time, spring_damping);
}
}
--- NEW FILE: PhysicsParticle.java ---
package net.sourceforge.bprocessor.packages.physics;
import net.sourceforge.bprocessor.model.Vertex;
import java.util.*;
public class PhysicsParticle {
//properties
Vertex pos; //position
Vertex nPos; // new position
Vertex vel; //velocity
Vertex a; //acceleration
double m; //mass
Vertex f; //force acting on particle
boolean fix; //fix or movable particle?
int ID; //Particle ID for identification
Vertex aForce; //additional force - sum of other calculations. Is added to acceleration calculation.
Vertex lastPos; //last position of vertex
ArrayList<PhysicsSpring> springs = new ArrayList(); //springs connected to particle
//constructor
PhysicsParticle (Vertex node, Vertex velocity, Vertex acceleration, double mass, int ID) {
pos = node;
vel = velocity;
a = acceleration;
m = mass;
fix = node.isCorner();
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
this.ID = ID;
aForce = new Vertex(0,0,0);
lastPos = nPos;
}
//add a spring connected to Particle
void connectSpring(PhysicsSpring s) {
springs.add(s);
}
//add force
void addForce(Vertex force) {
aForce = aForce.add(force);
}
//calculate acceleration
void calcAcc(double gravity, double particle_drag) {
f = new Vertex(0,0,0);
//spring forces
for (int i = 0; i<springs.size(); i++) {
PhysicsSpring s = (PhysicsSpring) springs.get(i);
//check paricles of force
if (ID == s.pA.ID) {
f=f.add(s.fA);
}
else {
f=f.add(s.fB);
}
}
//gravity
f = f.add(new Vertex(0,0,gravity*m));
//any other force
f = f.add(aForce);
aForce = new Vertex(0,0,0);
//coefficient of drag, damping
//f = v * -coefficient of damping
f = f.add(vel.scale(-1*particle_drag));
//acceleration
a=f.scale(1.0/m);
}
//move particle
void move(double time, double gravity, double particle_drag) {
if ((fix == false) && (pos.isCorner() != true)) {
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
//calculate acceleration
calcAcc(gravity, particle_drag);
//calculate new position
//pos new = pos old + vel * time + 0.5 * acceleration * time * time
nPos = nPos.add(vel.scale(time));
nPos = nPos.add(a.scale(0.5*time*time));
//calculate new velocity
//vel = acceleration * time
vel = vel.add(a.scale(time));
lastPos = nPos;
}
}
}
--- NEW FILE: PhysicsSurface.java ---
package net.sourceforge.bprocessor.packages.physics;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.*;
import com.sun.net.ssl.internal.ssl.Debug;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.Surface;
public class PhysicsSurface {
Surface bSurf; //the original bNet Surface
PhysicsPlane avPlane; //average Plane of Surface
HashMap<Vertex,PhysicsParticle> particles = new HashMap(); //maps the surface vertices to the corresponding particles
HashMap<Edge,PhysicsSpring> springs = new HashMap(); //maps the surface edges to the corresponding springs
HashMap<Vertex, Double> lastPlaneDist = new HashMap(); //maps the surface vertices to their last average plane distance
double lastLength;
double lastDiaLength;
//constructors
PhysicsSurface (Surface bNetSurface, HashMap<Vertex,PhysicsParticle> VPmap, HashMap<Edge,PhysicsSpring> ESmap) {
bSurf = bNetSurface;
particles = VPmap;
springs = ESmap;
List<Edge> edges = bSurf.getEdges();
//get current average length
double l = 0;
for (Edge e : edges) {
l += e.getLength();
}
l = l/edges.size();
lastLength = l;
//get current average diagonal length
double dl = 0;
List<Vertex> vertices = bSurf.getVertices();
if (vertices.size() == 4) {
dl = vertices.get(0).distance(vertices.get(2)) + vertices.get(1).distance(vertices.get(3));
dl = dl / 2;
}
lastDiaLength = dl;
for (Vertex v : vertices) {
lastPlaneDist.put(v,new Double(0));
}
}
void equalizeEdges(double time, double spring_constant, double damping) {
List<Edge> edges = bSurf.getEdges();
//get average (desired) edge length
double l = 0;
for (Edge e : edges) {
l += e.getLength();
}
l = l/edges.size();
for (Edge e : edges) {
//calculate force on particles using spring equation incl. damping
double sf = (l-e.getLength())*spring_constant;
sf = sf + ((l-lastLength)*damping / time);
lastLength = l;
//get Vector from A to B and vice versa
Vertex fB = e.getTo().minus(e.getFrom());
Vertex fA = e.getFrom().minus(e.getTo());
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf);
fB.scaleIt(sf);
//add forces to corresponding particles
PhysicsParticle pA = particles.get(e.getFrom());
PhysicsParticle pB = particles.get(e.getTo());
pA.addForce(fA);
pB.addForce(fB);
}
}
Vertex averageNormal() {
bSurf.calcNormals();
return bSurf.normal();
/*
//* @Michael: algorithm for Normal seems to be so complicated... why?
Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
double num = vertices.size();
if (num>3) {
//if surface has more than 3 vertices
//add first two vertices to the end of the list for loop
vertices.add(vertices.get(0));
vertices.add(vertices.get(1));
for (int i=0; i<num; i++) {
Vertex a = vertices.get(0).minus(vertices.get(1));
Vertex b = vertices.get(2).minus(vertices.get(1));
Vertex n = a.cross(b);
n.normalize();
nV = nV.add(n);
}
nV.normalize();
}
if (num == 3) {
//surface is triangular - there is only one normal
Vertex a = vertices.get(0).minus(vertices.get(1));
Vertex b = vertices.get(2).minus(vertices.get(1));
nV = nV.add(a.cross(b));
//nV = nV.scale(1/3);
nV.normalize();
}
return nV;
*/
}
double calcArea() {
double area = 0.0;
List<Vertex> vertices = bSurf.getVertices();
double num = vertices.size();
vertices.add(vertices.get(0));
List<Vertex> crossProducts = new ArrayList<Vertex>();
for (int i=0; i<num; i++) {
Vertex p1 = vertices.get(i);
Vertex p2 = vertices.get(i+1);
Vertex cP = p1.cross(p2);
crossProducts.add(cP);
}
Vertex sum = new Vertex(0,0,0);
for (Vertex cP : crossProducts) {
sum = sum.add(cP);
}
double dotP;
dotP = Math.abs(averageNormal().dot(sum));
area = 0.5 * dotP;
return area;
}
void normalForce(Space guides, double time, double force) {
List<Vertex> vertices = bSurf.getVertices();
Vertex n = averageNormal();
n.normalize();
n = n.scale(force);
//display force vector
Vertex c = bSurf.center();
Edge eA = new Edge(c,c.add(n));
guides.add(eA);
for (Vertex v : vertices) {
//get corresponding Particle
PhysicsParticle pA = particles.get(v);
//add force to particle
pA.addForce(n);
}
}
void planarize(Space guides, double time, double spring_constant, double spring_damping) {
if (spring_constant!=0) {
List<Vertex> vertices = bSurf.getVertices();
avPlane = new PhysicsPlane(averageNormal(),bSurf.center()); //vertices.get(0));
for (Vertex v : vertices) {
//get corresponding Particle
PhysicsParticle pA = particles.get(v);
//get vector to average plane
Vertex nV = avPlane.PointNormalToPlane(v);
//calculate spring force and damping
double pl = nV.length();
double lastPl = (double) lastPlaneDist.get(v);
double sf = (pl)*spring_constant;
sf = sf + ((pl-lastPl)*spring_damping / time);
//save current length for next calculation
lastPlaneDist.put(v, new Double(pl));
//add force to particle
nV.normalize();
nV = nV.scale(sf);
pA.addForce(nV);
//display force vector
Edge eA = new Edge(v,avPlane.PointProjectToPlane(v));
guides.add(eA);
}
}
}
void quadToRect(Space guides, double time, double spring_constant, double spring_damping) {
//make a quad surface rectangular by equalizing the length of both diagonals
List<Vertex> vertices = bSurf.getVertices();
//these forces are only applied if surface is quad
if (vertices.size() == 4) {
//create List of diagonals
ArrayList<Edge> dEdges = new ArrayList<Edge>();
Edge eA = new Edge(vertices.get(0), vertices.get(2));
guides.add(eA);
dEdges.add(eA);
Edge eB = new Edge(vertices.get(1), vertices.get(3));
guides.add(eB);
dEdges.add(eB);
//get average diagonal length
double dl = (eA.getLength() + eB.getLength()) / 2;
//add spring forces to diagonals
for (Edge e : dEdges) {
//calculate force on particles using spring equation incl. damping
double sf = (dl-e.getLength())*spring_constant;
sf = sf + ((dl-lastDiaLength)*spring_damping / time);
lastDiaLength = dl;
//get Vector from A to B and vice versa
Vertex fB = e.getTo().minus(e.getFrom());
Vertex fA = e.getFrom().minus(e.getTo());
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf);
fB.scaleIt(sf);
//add forces to corresponding particles
PhysicsParticle pA = particles.get(e.getFrom());
PhysicsParticle pB = particles.get(e.getTo());
pA.addForce(fA);
pB.addForce(fB);
}
}
}
}
--- NEW FILE: PhysicsPackage.java ---
package net.sourceforge.bprocessor.packages.physics;
import net.sourceforge.bprocessor.gl.Editor;
import net.sourceforge.bprocessor.gl.tool.AbstractTool;
import net.sourceforge.bprocessor.model.Command;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Geometric;
import net.sourceforge.bprocessor.model.Item;
import net.sourceforge.bprocessor.model.Operation;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.Surface;
import net.sourceforge.bprocessor.model.plugin.NetCommand;
import net.sourceforge.bprocessor.packages.physics.PhysicsNet;
import net.sourceforge.bprocessor.packages.skeleton.SkeletonPackage.SkeletonTool;
import java.awt.event.MouseEvent;
import java.util.*;
/*
* To Do
* Michael:
* parameters additional parameters should be saved when added, change function , the display of the value is not automatically updated.
* Plugin Parameters and Selection Parameters: they should not be displayed in the same panel. Rather split the existing panel. So there can be a selection and a tool running at the same time and all information is visible.
* Sliders, Checkboxes, etc. for the plugin controls
* A plugin button should be able to run a tool with a selection / mouse interaction.
*
* Modify new net while simulation is running, i.e. corner property, etc.
* Planarity and regularity of panels, add bending stiffness!
* Rectangularity needs improvement, bending stiffness!
* Add parameters to b-net and save them! - see above, Michael, add and save parameters to original net
* Subdivision
* Selection => parameter changes to vertices and edges, not only global
* Volume calculation and inflation force
* Auto-detect corners of net (vertices that are only connected to 2 edges)
* time settings and parameters
*/
public class PhysicsPackage {
public static class Springsystem extends NetCommand {
private physicsChangeSpringTool changeSpringTool;
private physicsChangeWeightTool changeWeightTool;
Space union; //Union containing Objects created by script
Space cNet; //copy of b-Net, graphical representation of Physics Net
PhysicsNet pN; //Physics Net = Simulation Object
HashMap<Edge, Edge> edges = new HashMap();
HashMap<Vertex, Vertex> vertices = new HashMap();
//parameters
double gravity;
double mass;
double pDamp;
double cDamp;
double restLengthFactor;
double springConstant;
double equalConstant;
double equalDamping;
double rectConstant;
double rectDamping;
double planeConstant;
double planeDamping;
//double normalForce;
double volume;
//boolean editNet;
public void initialize(Space net) {
//parameters
gravity = -9.81;
parameters.put("Gravity [m/s2]", gravity);
mass = 1;
parameters.put("Particle Mass [kg]", mass);
pDamp = 2.0;
parameters.put("Particle Damping [N sec/m]",pDamp);
cDamp = 2.0;
parameters.put("Spring Damping [N sec/m]",cDamp);
restLengthFactor = 0.5;
parameters.put("Spring Restlength Factor",restLengthFactor);
springConstant = 20.0;
parameters.put("Spring Constant c [N/m]",springConstant);
equalConstant = 0.0;
parameters.put("Equal Edges Spring Constant ec [N/m]",equalConstant);
equalDamping = 2.0;
parameters.put("Equal Edges Damping [N sec/m]", equalDamping);
rectConstant = 0.0;
parameters.put("Equal Diagonals Spring Constant rc [N/m]",rectConstant);
rectDamping = 2.0;
parameters.put("Equal Diagonals Damping [N sec/m]", rectDamping);
planeConstant = 0.0;
parameters.put("Planarity Spring Constant pc [N/m]",planeConstant);
planeDamping = 2.0;
parameters.put("Planarity Damping [N sec/m]", planeDamping);
//normalForce = 0.0;
//parameters.put("Normal Surface Force [N]", normalForce);
volume = 1.0;
parameters.put("Volume [m3]", volume);
//editNet = true;
//parameters.putBoolean("Edit B-Net", editNet);
super.initializeNoItem(net);
//create copy of b-Net
Map map = new HashMap();
//map = net.getOwnParameters();
cNet = net.copy(map);
cNet.setName(net.getName()+"- Physics Net");
//cNet.edit();
//copy corner points
Collection<Vertex> nVertices = net.getVertices();
Collection<Vertex> cVertices = cNet.getVertices();
for (Vertex nV : nVertices) {
for (Vertex cV : cVertices) {
if (nV.coincides(cV)) {
cV.setCorner(nV.isCorner());
vertices.put(nV,cV);
}
}
}
//create Edges HashMap
Collection<Edge> nEdges = net.getEdges();
Collection<Edge> bEdges = cNet.getEdges();
for (Edge nE : nEdges) {
for (Edge cE : bEdges) {
if (nE.equivalent(cE)) {
edges.put(nE,cE);
}
}
}
//create physics Net
pN = new PhysicsNet(cNet, gravity, springConstant, cDamp, pDamp, mass, restLengthFactor);
//tools
changeSpringTool = new physicsChangeSpringTool(cNet,pN,edges);
parameters.put("Change Spring Restlength", new Operation() {
@Override
public void perform() {
System.out.println("activate tool");
cNet.edit();
Editor.instance().changeTool(changeSpringTool);
}
});
changeWeightTool = new physicsChangeWeightTool(pN);
parameters.put("Change Particle Weight", new Operation() {
@Override
public void perform() {
System.out.println("activate tool");
cNet.edit();
Editor.instance().changeTool(changeWeightTool);
}
});
}
public void evaluate() {
//remove all elements of last iteration
//clear();
//////////////////////////////////////////////////////////////////
//get changed parameters
//gravity
gravity = (Double) parameters.getDouble("Gravity [m/s2]");
pN.gravity = gravity;
//particle Mass
double oldMass = mass;
mass = (Double) parameters.getDouble("Particle Mass [kg]");
if (mass!=oldMass) {
pN.updateMass(mass);
}
//particle Damping
pDamp = (Double) parameters.getDouble("Particle Damping [N sec/m]");
pN.particle_d =pDamp;
//spring damping
cDamp = (Double) parameters.getDouble("Spring Damping [N sec/m]");
pN.spring_d = cDamp;
//spring restlength factor
restLengthFactor = (Double) parameters.getDouble("Spring Restlength Factor");
//spring constant
Double oldSpringConstant = springConstant;
springConstant = (Double) parameters.get("Spring Constant c [N/m]");
if (oldSpringConstant!=springConstant) {
pN.updateSpringConstant(springConstant);
}
//equal edges parameters
equalConstant = (Double) parameters.get("Equal Edges Spring Constant ec [N/m]");
equalDamping = (Double) parameters.get("Equal Edges Damping [N sec/m]");
//rectangular quads parameters
rectConstant = (Double) parameters.get("Equal Diagonals Spring Constant rc [N/m]");
rectDamping = (Double) parameters.get("Equal Diagonals Damping [N sec/m]");
//Planarity
planeConstant = (Double) parameters.get("Planarity Spring Constant pc [N/m]");
planeDamping = (Double) parameters.get("Planarity Damping [N sec/m]");
//normal Force
//normalForce = (Double) parameters.get("Normal Surface Force [N]");
//boolean parameters
//editNet = (Boolean) parameters.getBoolean("Edit B-Net");
//Desired Volume
volume = (Double) parameters.get("Volume [m3]");
/////////////////////////////////////////////////////////////////////////////////////////////
//track changes of bNet and modify Physics Net accordingly
//update vertices
Collection<Vertex> bVertices = net.getVertices();
for (Vertex bV : bVertices) {
if (bV.isCorner()) {
Vertex pV = vertices.get(bV);
pV.setX(bV.getX());
pV.setY(bV.getY());
pV.setZ(bV.getZ());
pN.updatePos(pV);
}
}
//update edges
Collection<Edge> bEdges = net.getEdges();
for (Edge bE : bEdges) {
pN.updateRestLength(edges.get(bE), bE.getLength());
pN.setRestLengthFactor(edges.get(bE), restLengthFactor);
}
//add a union space containing all new elements
union = (Space) net.getOwner().find("PhysicsSystem");
//check if space was already created
if (union == null) {
union = Item.createUnion("PhysicsSystem");
net.getOwner().add(union);
} else {
union.clear();
}
//add guidelines
Space guides = Item.createUnion("Guidelines");
union.add(guides);
//change p-net
/*if (editNet) {
net.edit();
} else {
cNet.edit();
}*/
pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, volume);
union.add(cNet);
}
public String title() {
return "Springsystem";
}
}
public PhysicsPackage() {
Command.register(Springsystem.class);
}
//Tool
public static class physicsChangeSpringTool extends AbstractTool {
Space cNet; //copy of b-Net, graphical representation of Physics Net
PhysicsNet pN; //Physics Net = Simulation Object
HashMap<Edge, Edge> edges = new HashMap();
public physicsChangeSpringTool() {
// TODO Auto-generated constructor stub
}
public physicsChangeSpringTool(Space cNet, PhysicsNet pN, HashMap<Edge, Edge> edges) {
this.cNet = cNet;
this.pN = pN;
this.edges = edges;
}
@Override
protected void dragged(MouseEvent event) {
// TODO Auto-generated method stub
}
@Override
protected void moved(MouseEvent event) {
findTarget(event);
if (target instanceof Geometric) {
if (target instanceof Surface) {
editor.getView().makeTarget(target);
}
if (target instanceof Edge) {
editor.getView().makeTarget(target);
}
}
}
@Override
protected void pressed(MouseEvent event) {
findTarget(event);
if (target instanceof Geometric) {
if (target instanceof Surface) {
editor.getView().makeTarget(target);
Surface bS = (Surface) target;
Collection<Edge> bEdges = bS.getEdges();
for (Edge bE : bEdges) {
pN.scaleRestLengthFactor(bE, 1.1);
}
}
if (target instanceof Edge) {
editor.getView().makeTarget(target);
Edge bE = (Edge) target;
pN.scaleRestLengthFactor(bE, 1.1);
}
}
}
@Override
protected void released(MouseEvent event) {
// TODO Auto-generated method stub
}
}
public static class physicsChangeWeightTool extends AbstractTool {
PhysicsNet pN; //Physics Net = Simulation Object
public physicsChangeWeightTool() {
// TODO Auto-generated constructor stub
}
public physicsChangeWeightTool(PhysicsNet pN) {
this.pN = pN;
}
@Override
protected void dragged(MouseEvent event) {
// TODO Auto-generated method stub
}
@Override
protected void moved(MouseEvent event) {
findTarget(event);
if (target instanceof Geometric) {
if (target instanceof Vertex) {
editor.getView().makeTarget(target);
}
}
}
@Override
protected void pressed(MouseEvent event) {
findTarget(event);
if (target instanceof Geometric) {
if (target instanceof Vertex) {
editor.getView().makeTarget(target);
Vertex bV = (Vertex) target;
pN.scaleParticleMass(bV,1.2);
}
}
}
@Override
protected void released(MouseEvent event) {
// TODO Auto-generated method stub
}
}
}
--- NEW FILE: PhysicsNet.java ---
package net.sourceforge.bprocessor.packages.physics;
import java.util.*;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.ParameterBlock;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.Surface;
public class PhysicsNet {
//properties
Space cNet;
double gravity = -9.81;
double globalParticleMass = 1.0;
double spring_c = 4.4; //spring constant
double spring_d = 0.5; //spring damping
double particle_d = 3; //particle damping coefficient of drag
boolean solid = false;
HashMap<Vertex,PhysicsParticle> particles = new HashMap();
HashMap<Edge,PhysicsSpring> springs = new HashMap();
HashMap<Surface, PhysicsSurface> surfaces = new HashMap();
//constructor
PhysicsNet(Space cNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
globalParticleMass = mass;
//this.bNet = (Space) bNet.copy(pMap);
this.cNet = cNet;
this.spring_c = spring_constant;
this.spring_d = spring_damping;
this.particle_d = particle_damping;
this.solid = isSolid();
//create Particles and Springs from Vertices of b-Net
Collection<Vertex> bVertices = cNet.getVertices();
Map<Vertex, List<Edge>> edgeMap = cNet.getEdgeMap(bVertices);
int counter = 0;
for (Vertex bV : bVertices) {
particles.put(bV, new PhysicsParticle(bV, new Vertex(0,0,0), new Vertex(0,0,0), mass, counter));
counter++;
}
//create Springs
Collection<Edge> bEdges = cNet.getEdges();
for (Edge bE : bEdges) {
PhysicsParticle pA = particles.get(bE.getFrom());
PhysicsParticle pB = particles.get(bE.getTo());
PhysicsSpring pS = new PhysicsSpring(pA,pB,pA.pos.distance(pB.pos),spring_c);
pS.restLengthFactor = restLengthFactor;
springs.put(bE, pS);
pA.connectSpring(pS);
pB.connectSpring(pS);
counter++;;
saveSpringParameter(bE,pS);
}
//create PhysicsSurfaces
Collection<Surface> bSurfaces = cNet.getSurfaces();
for (Surface bS : bSurfaces) {
//create HashMaps for Surface
//edges - springs
//vertices - Particles
List<Vertex> bSV = bS.getVertices();
HashMap<Vertex, PhysicsParticle> bSVP= new HashMap();
for (Vertex v : bSV) {
PhysicsParticle p = (PhysicsParticle) particles.get(v);
bSVP.put(v,p);
}
List<Edge> bSE = bS.getEdges();
HashMap<Edge, PhysicsSpring> bSES = new HashMap();
for (Edge e : bSE) {
PhysicsSpring s = (PhysicsSpring) springs.get(e);
bSES.put(e,s);
}
PhysicsSurface pS = new PhysicsSurface(bS,bSVP,bSES);
surfaces.put(bS, pS);
}
}
void saveSpringParameter(Edge e, PhysicsSpring pS) {
ParameterBlock block = e.getParameters();
if (block == null) {
block = new ParameterBlock();
e.setParameters(block);
block.putDouble("Spring current Length", e.getLength());
block.putDouble("Spring Restlength", pS.eql);
block.putDouble("Spring Constant", pS.c);
}
block.changeDouble("Spring current Length", e.getLength());
block.changeDouble("Spring Restlength", pS.eql);
block.changeDouble("Spring Constant", pS.c);
}
void saveParticleParameter(Vertex v, PhysicsParticle pP) {
ParameterBlock block = v.getParameters();
if (block == null) {
block = new ParameterBlock();
v.setParameters(block);
block.putDouble("Particle Weight [kg]", pP.m);
}
block.changeDouble("Particle Weight [kg]", pP.m);
}
double saveVolume (Space cNet) {
double volume = 0.0;
if (solid) {
volume = calcVolume();
ParameterBlock block = cNet.getParameters();
if (block == null) {
block = new ParameterBlock();
cNet.setParameters(block);
block.putDouble("Volume", volume);
}
block.changeDouble("Volume", volume);
}
return volume;
}
void saveArea (Surface s) {
ParameterBlock block = s.getParameters();
PhysicsSurface pS = surfaces.get(s);
if (block == null) {
block = new ParameterBlock();
s.setParameters(block);
block.putDouble("Area", pS.calcArea());
}
block.changeDouble("Area", pS.calcArea());
}
void updatePos(Vertex cV) {
PhysicsParticle pA = particles.get(cV);
pA.pos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
pA.nPos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
pA.lastPos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
}
void updateMass(double mass) {
Iterator it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
//only change value if mass of particle wasn't changed locally.
if (p.m == globalParticleMass) {
p.m = mass;
}
}
//set globalParticleMass to current value.
globalParticleMass = mass;
}
void scaleParticleMass(Vertex v, double scale) {
PhysicsParticle p = (PhysicsParticle)particles.get(v);
p.m = p.m * scale;
}
void updateRestLength(Edge e, double eql) {
PhysicsSpring s = (PhysicsSpring)springs.get(e);
s.eql = eql;
}
void setRestLengthFactor (Edge e, double restLengthFactor) {
PhysicsSpring s = (PhysicsSpring)springs.get(e);
s.restLengthFactor = restLengthFactor;
}
void scaleRestLengthFactor (Edge e, double scale) {
PhysicsSpring s = (PhysicsSpring)springs.get(e);
s.restLengthScale = s.restLengthScale * scale;
}
void updateSpringConstant(double springConstant) {
Iterator it = springs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSpring s = (PhysicsSpring)ee.getValue();
s.c = springConstant;
}
}
void update(Space guides, double time, double equalConstant, double equalDamping, double rectConstant, double rectDamping, double planeConstant, double planeDamping, double volume) {
Iterator it;
//calculate surface forces
double currentVolume = saveVolume(cNet);
it = surfaces.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSurface s = (PhysicsSurface)ee.getValue();
s.equalizeEdges(time, equalConstant, equalDamping);
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
if ((volume>0) && (solid)) {
double normalForce = s.calcArea()*volume/currentVolume;
s.normalForce(guides, time, normalForce);
}
saveArea((Surface) ee.getKey());
}
//claculate particle movement
it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
p.move(time, gravity, particle_d);
}
//move nodes of b-net to particle positions
it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
Vertex v = (Vertex)ee.getKey();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
v.set(p.nPos);
saveParticleParameter(v,p);
}
//update springs
it = springs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
Edge e = (Edge)ee.getKey();
PhysicsSpring s = (PhysicsSpring)ee.getValue();
s.update(time, spring_d);
saveSpringParameter(e,s);
}
cNet.update();
}
//check if c-Net forms a solid.
//each edge is connected to 2 surfaces.
boolean isSolid() {
boolean solid = true;
Collection<Edge> cEdges = cNet.getEdges();
for (Edge nE : cEdges) {
Set<Surface> cSurfaces = nE.getSurfaces();
if (cSurfaces.size()<2) solid = false;
}
return solid;
}
//calculate volume of solid
double calcVolume() {
double v = 0.0;
Iterator it = surfaces.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
Surface s = (Surface)ee.getKey();
PhysicsSurface pS = (PhysicsSurface)ee.getValue();
List<Vertex> vertices = s.getVertices();
Vertex p = vertices.get(0);
Vertex n = pS.averageNormal();
//n.normalize();
double test = p.dot(n);
v = v + pS.calcArea()* test;
}
v = Math.abs(v)/3;
return v;
}
}
--- NEW FILE: PhysicsPlane.java ---
package net.sourceforge.bprocessor.packages.physics;
import net.sourceforge.bprocessor.model.Vertex;
public class PhysicsPlane {
//properties of a plane
//3 points
Vertex[] pPoints = new Vertex[3];
//normal
Vertex nVec = new Vertex(0,0,0);
//origin
Vertex origin;
//directions
Vertex dirX;
Vertex dirY;
//distance
double d = 0;
//constructor from 3 points
PhysicsPlane (Vertex origin, Vertex point1, Vertex point2) {
//save plane points
this.origin = new Vertex(origin.getX(),origin.getY(), origin.getZ());
dirX = new Vertex(point1.getX(),point1.getY(), point1.getZ());
dirY = new Vertex(point2.getX(),point2.getY(), point2.getZ());
pPoints[0] = this.origin;
pPoints[1] = new Vertex(point1.getX(),point1.getY(), point1.getZ());
pPoints[2] = new Vertex(point2.getX(),point2.getY(), point2.getZ());
//get plane directions
dirX = dirX.minus(origin);
dirY = dirY.minus(origin);
//calculate normal
nVec = dirX.cross(dirY);
nVec.normalize();
d = nVec.dot(origin);
}
//constructor from normal and origin
PhysicsPlane (Vertex nVec, Vertex origin) {
this.nVec = nVec.copy();
this.nVec.normalize();
d = nVec.dot(origin);
}
//Normal Vector from point onto Plane
Vertex PointNormalToPlane(Vertex pnt) {
double t0;
Vertex x0;
Vertex lNorm;
Vertex PtoE;
t0 = (d-nVec.dot(pnt)) / (nVec.dot(nVec));
lNorm = new Vertex(nVec.getX(), nVec.getY(),nVec.getZ());
lNorm = lNorm.scale(t0);
x0 = new Vertex (pnt.getX(), pnt.getY(), pnt.getZ());
x0 = x0.add(lNorm);
PtoE = x0;
PtoE = PtoE.minus(pnt);
return PtoE;
}
Vertex PointProjectToPlane(Vertex pnt) {
double t0;
Vertex x0;
Vertex lNorm;
Vertex PtoE;
t0 = (d-nVec.dot(pnt)) / (nVec.dot(nVec));
lNorm = new Vertex(nVec.getX(), nVec.getY(),nVec.getZ());
lNorm = lNorm.scale(t0);
x0 = new Vertex (pnt.getX(), pnt.getY(), pnt.getZ());
x0 = x0.add(lNorm);
PtoE = x0;
return PtoE;
}
}
|
|
From: Sebastian G. <sg...@us...> - 2011-05-16 06:11:03
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin In directory vz-cvs-2.sog:/tmp/cvs-serv11328/src/net/sourceforge/bprocessor/model/plugin Removed Files: PhysicsParticle.java PhysicsNet.java PhysicsPlane.java PhysicsSpring.java PhysicsSurface.java PhysicsPackage.java Log Message: Hanging Chain Tools, Volume Calc --- PhysicsSpring.java DELETED --- --- PhysicsParticle.java DELETED --- --- PhysicsSurface.java DELETED --- --- PhysicsPackage.java DELETED --- --- PhysicsNet.java DELETED --- --- PhysicsPlane.java DELETED --- |
|
From: Sebastian G. <sg...@us...> - 2011-05-16 06:10:58
|
Update of /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages/physics In directory vz-cvs-2.sog:/tmp/cvs-serv11321/src/net/sourceforge/bprocessor/packages/physics Log Message: Directory /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages/physics added to the repository |
|
From: Michael L. <he...@us...> - 2011-05-11 10:14:50
|
Update of /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages/skeleton
In directory vz-cvs-2.sog:/tmp/cvs-serv28544/src/net/sourceforge/bprocessor/packages/skeleton
Added Files:
SkeletonPackage.java
Log Message:
--- NEW FILE: SkeletonPackage.java ---
package net.sourceforge.bprocessor.packages.skeleton;
import java.awt.Cursor;
import java.awt.event.MouseEvent;
import net.sourceforge.bprocessor.gl.Editor;
import net.sourceforge.bprocessor.gl.tool.AbstractTool;
import net.sourceforge.bprocessor.model.Command;
import net.sourceforge.bprocessor.model.Geometric;
import net.sourceforge.bprocessor.model.Operation;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.plugin.NetCommand;
public class SkeletonPackage {
public SkeletonPackage() {
Command.register(SkeletonCommand.class);
}
public static class SkeletonCommand extends NetCommand {
private SkeletonTool tool;
public void initialize(Space net) {
System.out.println("initialize " + net);
tool = new SkeletonTool();
parameters.put("Tool", new Operation() {
@Override
public void perform() {
System.out.println("activate tool");
Editor.instance().changeTool(tool);
}
});
}
public void evaluate() {
System.out.println("evaluate");
}
}
public static class SkeletonTool extends AbstractTool {
public SkeletonTool() {
// TODO Auto-generated constructor stub
}
@Override
protected void dragged(MouseEvent event) {
// TODO Auto-generated method stub
}
@Override
protected void moved(MouseEvent event) {
findTarget(event);
if (target instanceof Geometric) {
editor.getView().makeTarget(target);
}
}
@Override
protected void pressed(MouseEvent event) {
if (target instanceof Geometric) {
System.out.println("clicked " + target);
}
}
@Override
protected void released(MouseEvent event) {
// TODO Auto-generated method stub
}
}
}
|
|
From: Michael L. <he...@us...> - 2011-05-11 10:14:47
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory vz-cvs-2.sog:/tmp/cvs-serv28533/src/net/sourceforge/bprocessor/model
Modified Files:
Space.java Project.java
Log Message:
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.256
retrieving revision 1.257
diff -C2 -d -r1.256 -r1.257
*** Space.java 5 May 2011 10:22:48 -0000 1.256
--- Space.java 11 May 2011 10:14:45 -0000 1.257
***************
*** 280,283 ****
--- 280,294 ----
}
+
+ public void checkAll() {
+ check();
+ for (Item current : getElements()) {
+ if (current instanceof Space) {
+ Space child = (Space) current;
+ child.checkAll();
+ }
+ }
+ }
+
/**
* Perform a consistency check of the geometry.
***************
*** 307,314 ****
Iterator iter = getEdges().iterator();
while (iter.hasNext()) {
! Geometric current = (Geometric) iter.next();
if (current.getOwner() != this) {
throw new Error(current + " not owned by " + this);
}
}
}
--- 318,333 ----
Iterator iter = getEdges().iterator();
while (iter.hasNext()) {
! Edge current = (Edge) iter.next();
if (current.getOwner() != this) {
throw new Error(current + " not owned by " + this);
}
+ if (current.getFrom() == null) {
+ System.out.println("from null");
+ throw new Error(current.getId() + " null from in" + this);
+ }
+ if (current.getTo() == null) {
+ System.out.println("to null");
+ throw new Error(current.getId() + " null to in" + this);
+ }
}
}
Index: Project.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v
retrieving revision 1.205
retrieving revision 1.206
diff -C2 -d -r1.205 -r1.206
*** Project.java 26 Apr 2011 06:23:03 -0000 1.205
--- Project.java 11 May 2011 10:14:45 -0000 1.206
***************
*** 842,845 ****
--- 842,856 ----
*/
public void setDocument(Document document) {
+
+ Space world = document.getWorld();
+ try {
+ System.out.println("checking : " + world);
+ world.checkAll();
+ System.out.println("done checking : " + world);
+ } catch(Throwable error) {
+ System.out.println("caught error in checking");
+ System.out.println(error.getMessage());
+ }
+
setWorld(document.getWorld());
setActiveCoordinateSystem(document.getActiveSystem());
|
|
From: Michael L. <he...@us...> - 2011-05-11 10:14:44
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl
In directory vz-cvs-2.sog:/tmp/cvs-serv28522/src/net/sourceforge/bprocessor/gl
Modified Files:
Editor.java
Log Message:
Index: Editor.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/Editor.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Editor.java 5 May 2011 10:22:55 -0000 1.19
--- Editor.java 11 May 2011 10:14:42 -0000 1.20
***************
*** 60,63 ****
--- 60,65 ----
*/
public class Editor implements MouseListener, Observer {
+ private static Editor instance;
+
/** The logger */
private static Logger log = Logger.getLogger(Editor.class);
***************
*** 95,98 ****
--- 97,107 ----
private JPanel jp;
+ /**
+ *
+ * @return instance of Editor
+ */
+ public static Editor instance() {
+ return instance;
+ }
/**
***************
*** 229,232 ****
--- 238,242 ----
*/
public Editor() {
+ instance = this;
Selection.primary().addObserver(this);
Project.getInstance().addStaticObserver(this);
***************
*** 408,417 ****
}
/**
* Change the tool used by gl
! * @param key The new tool
* @return The chosen tool
*/
! public Tool changeTool(String key) {
tool.cleanUp();
this.repaint(true);
--- 418,438 ----
}
+
+ /**
+ *
+ * @param key The key of the next tool
+ * @return the next tool
+ */
+ public Tool changeTool(String key) {
+ Tool next = ToolFactory.getFactory(this).get(key);
+ return changeTool(next);
+ }
+
/**
* Change the tool used by gl
! * @param next The new tool
* @return The chosen tool
*/
! public Tool changeTool(Tool next) {
tool.cleanUp();
this.repaint(true);
***************
*** 419,423 ****
glc.removeMouseMotionListener(tool);
glc.removeKeyListener(tool);
! tool = ToolFactory.getFactory(this).get(key);
if (tool != null) {
glc.addMouseListener(tool);
--- 440,444 ----
glc.removeMouseMotionListener(tool);
glc.removeKeyListener(tool);
! tool = next;
if (tool != null) {
glc.addMouseListener(tool);
|
|
From: Michael L. <he...@us...> - 2011-05-11 10:14:40
|
Update of /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages In directory vz-cvs-2.sog:/tmp/cvs-serv28511/src/net/sourceforge/bprocessor/packages Log Message: Directory /cvsroot/bprocessor/bprocessor/src/net/sourceforge/bprocessor/packages added to the repository |
|
From: Sebastian G. <sg...@us...> - 2011-05-09 12:32:54
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv20076/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
PhysicsSurface.java
Log Message:
Index: PhysicsSurface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsSurface.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PhysicsSurface.java 9 May 2011 12:24:51 -0000 1.4
--- PhysicsSurface.java 9 May 2011 12:32:50 -0000 1.5
***************
*** 84,90 ****
Vertex averageNormal() {
! //bSurf.calcNormals();
! //return bSurf.normal();
!
//* @Michael: algorithm for Normal seems to be so complicated... why?
Vertex nV = new Vertex(0,0,0);
--- 84,90 ----
Vertex averageNormal() {
! bSurf.calcNormals();
! return bSurf.normal();
! /*
//* @Michael: algorithm for Normal seems to be so complicated... why?
Vertex nV = new Vertex(0,0,0);
***************
*** 114,118 ****
}
return nV;
!
}
--- 114,118 ----
}
return nV;
! */
}
|
|
From: Sebastian G. <sg...@us...> - 2011-05-09 12:24:54
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv18099/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
PhysicsNet.java PhysicsSurface.java
Log Message:
Index: PhysicsSurface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsSurface.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PhysicsSurface.java 9 May 2011 10:22:58 -0000 1.3
--- PhysicsSurface.java 9 May 2011 12:24:51 -0000 1.4
***************
*** 84,90 ****
Vertex averageNormal() {
! return bSurf.normal();
! /*
! * @Michael: algorithm for Normal seems to be so complicated... why?
Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
--- 84,91 ----
Vertex averageNormal() {
! //bSurf.calcNormals();
! //return bSurf.normal();
!
! //* @Michael: algorithm for Normal seems to be so complicated... why?
Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
***************
*** 113,117 ****
}
return nV;
! */
}
--- 114,118 ----
}
return nV;
!
}
Index: PhysicsNet.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsNet.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PhysicsNet.java 9 May 2011 10:22:58 -0000 1.4
--- PhysicsNet.java 9 May 2011 12:24:51 -0000 1.5
***************
*** 164,168 ****
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
! if (volume>0) {
double normalForce = s.calcArea()*volume/currentVolume;
s.normalForce(guides, time, normalForce);
--- 164,168 ----
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
! if ((volume>0) && (solid)) {
double normalForce = s.calcArea()*volume/currentVolume;
s.normalForce(guides, time, normalForce);
|
|
From: Sebastian G. <sg...@us...> - 2011-05-09 10:23:00
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv24100/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
PhysicsParticle.java PhysicsNet.java PhysicsSurface.java
PhysicsPackage.java
Log Message:
Physics Surface Solid calculation
Index: PhysicsParticle.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsParticle.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PhysicsParticle.java 26 Apr 2011 06:23:02 -0000 1.1
--- PhysicsParticle.java 9 May 2011 10:22:58 -0000 1.2
***************
*** 13,17 ****
double m; //mass
Vertex f; //force acting on particle
! boolean fix; //fix or movable particle?
int ID; //Particle ID for identification
Vertex aForce; //additional force - sum of other calculations. Is added to acceleration calculation.
--- 13,17 ----
double m; //mass
Vertex f; //force acting on particle
! boolean fix; //fix or movable particle?
int ID; //Particle ID for identification
Vertex aForce; //additional force - sum of other calculations. Is added to acceleration calculation.
***************
*** 21,30 ****
//constructor
! PhysicsParticle (Vertex node, Vertex velocity, Vertex acceleration, double mass, boolean fixed, int ID) {
pos = node;
vel = velocity;
a = acceleration;
m = mass;
! fix = fixed;
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
this.ID = ID;
--- 21,30 ----
//constructor
! PhysicsParticle (Vertex node, Vertex velocity, Vertex acceleration, double mass, int ID) {
pos = node;
vel = velocity;
a = acceleration;
m = mass;
! fix = node.isCorner();
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
this.ID = ID;
***************
*** 71,75 ****
//move particle
void move(double time, double gravity, double particle_drag) {
! if (fix != true) {
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
//calculate acceleration
--- 71,75 ----
//move particle
void move(double time, double gravity, double particle_drag) {
! if ((fix == false) && (pos.isCorner() != true)) {
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
//calculate acceleration
Index: PhysicsPackage.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsPackage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PhysicsPackage.java 5 May 2011 16:34:02 -0000 1.3
--- PhysicsPackage.java 9 May 2011 10:22:58 -0000 1.4
***************
*** 12,23 ****
/*
* To Do
! * 1. Modify new net while simulation is running, i.e. corner property, etc.
! * 2. Change to original net -> changes new net
! * 3. Parameters, toggles and sliders
! * 4. Planarity and regularity of panels, add bending stiffness!
! * 5. Add parameters to b-net and save them!
! * 6. Subdivision
! * 7. Selection => parameter changes to vertices and edges, not only global
! *
*/
--- 12,30 ----
/*
* To Do
! * Michael:
! * parameters additional parameters should be saved when added, change function , the display of the value is not automatically updated.
! * Plugin Parameters and Selection Parameters: they should not be displayed in the same panel. Rather split the existing panel. So there can be a selection and a tool running at the same time and all information is visible.
! * Sliders, Checkboxes, etc. for the plugin controls
! * A plugin button should be able to run a tool with a selection / mouse interaction.
! *
! * Modify new net while simulation is running, i.e. corner property, etc.
! * Planarity and regularity of panels, add bending stiffness!
! * Rectangularity needs improvement, bending stiffness!
! * Add parameters to b-net and save them! - see above, Michael, add and save parameters to original net
! * Subdivision
! * Selection => parameter changes to vertices and edges, not only global
! * Volume calculation and inflation force
! * Auto-detect corners of net (vertices that are only connected to 2 edges)
! * time settings and parameters
*/
***************
*** 25,31 ****
public static class Springsystem extends NetCommand {
! Space union;
! PhysicsNet pN; //physical Net
! Space cNet;
HashMap<Edge, Edge> edges = new HashMap();
--- 32,38 ----
public static class Springsystem extends NetCommand {
! Space union; //Union containing Objects created by script
! Space cNet; //copy of b-Net, graphical representation of Physics Net
! PhysicsNet pN; //Physics Net = Simulation Object
HashMap<Edge, Edge> edges = new HashMap();
***************
*** 45,49 ****
double planeConstant;
double planeDamping;
! double normalForce;
//boolean editNet;
--- 52,57 ----
double planeConstant;
double planeDamping;
! //double normalForce;
! double volume;
//boolean editNet;
***************
*** 75,84 ****
planeDamping = 2.0;
parameters.put("Planarity Spring Damping [N sec/m]", planeDamping);
! normalForce = 0.0;
! parameters.put("Normal Surface Force [N]", normalForce);
//editNet = true;
//parameters.putBoolean("Edit B-Net", editNet);
-
super.initializeNoItem(net);
//create copy of b-Net
--- 83,93 ----
planeDamping = 2.0;
parameters.put("Planarity Spring Damping [N sec/m]", planeDamping);
! //normalForce = 0.0;
! //parameters.put("Normal Surface Force [N]", normalForce);
! volume = 1.0;
! parameters.put("Volume [m3]", volume);
//editNet = true;
//parameters.putBoolean("Edit B-Net", editNet);
super.initializeNoItem(net);
//create copy of b-Net
***************
*** 86,89 ****
--- 95,99 ----
//map = net.getOwnParameters();
cNet = net.copy(map);
+ cNet.setName(net.getName()+"- Physics Net");
//cNet.edit();
//copy corner points
***************
*** 154,160 ****
planeDamping = (Double) parameters.get("Planarity Spring Damping [N sec/m]");
//normal Force
! normalForce = (Double) parameters.get("Normal Surface Force [N]");
//boolean parameters
//editNet = (Boolean) parameters.getBoolean("Edit B-Net");
/////////////////////////////////////////////////////////////////////////////////////////////
//track changes of bNet and modify Physics Net accordingly
--- 164,172 ----
planeDamping = (Double) parameters.get("Planarity Spring Damping [N sec/m]");
//normal Force
! //normalForce = (Double) parameters.get("Normal Surface Force [N]");
//boolean parameters
//editNet = (Boolean) parameters.getBoolean("Edit B-Net");
+ //Desired Volume
+ volume = (Double) parameters.get("Volume [m3]");
/////////////////////////////////////////////////////////////////////////////////////////////
//track changes of bNet and modify Physics Net accordingly
***************
*** 176,180 ****
}
-
//add a union space containing all new elements
union = (Space) net.getOwner().find("PhysicsSystem");
--- 188,191 ----
***************
*** 197,201 ****
cNet.edit();
}*/
! pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, normalForce);
union.add(cNet);
}
--- 208,212 ----
cNet.edit();
}*/
! pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, volume);
union.add(cNet);
}
Index: PhysicsSurface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsSurface.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PhysicsSurface.java 26 Apr 2011 06:33:58 -0000 1.2
--- PhysicsSurface.java 9 May 2011 10:22:58 -0000 1.3
***************
*** 3,6 ****
--- 3,7 ----
import java.util.ArrayList;
import java.util.HashMap;
+ import java.util.List;
import java.util.*;
***************
*** 83,87 ****
Vertex averageNormal() {
! Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
double num = vertices.size();
--- 84,91 ----
Vertex averageNormal() {
! return bSurf.normal();
! /*
! * @Michael: algorithm for Normal seems to be so complicated... why?
! Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
double num = vertices.size();
***************
*** 109,112 ****
--- 113,139 ----
}
return nV;
+ */
+ }
+
+ double calcArea() {
+ double area = 0.0;
+ List<Vertex> vertices = bSurf.getVertices();
+ double num = vertices.size();
+ vertices.add(vertices.get(0));
+ List<Vertex> crossProducts = new ArrayList<Vertex>();
+ for (int i=0; i<num; i++) {
+ Vertex p1 = vertices.get(i);
+ Vertex p2 = vertices.get(i+1);
+ Vertex cP = p1.cross(p2);
+ crossProducts.add(cP);
+ }
+ Vertex sum = new Vertex(0,0,0);
+ for (Vertex cP : crossProducts) {
+ sum = sum.add(cP);
+ }
+ double dotP;
+ dotP = Math.abs(averageNormal().dot(sum));
+ area = 0.5 * dotP;
+ return area;
}
Index: PhysicsNet.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsNet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PhysicsNet.java 5 May 2011 16:34:02 -0000 1.3
--- PhysicsNet.java 9 May 2011 10:22:58 -0000 1.4
***************
*** 17,20 ****
--- 17,21 ----
double spring_d = 0.5; //spring damping
double particle_d = 3; //particle damping coefficient of drag
+ boolean solid = false;
HashMap<Vertex,PhysicsParticle> particles = new HashMap();
HashMap<Edge,PhysicsSpring> springs = new HashMap();
***************
*** 22,42 ****
//constructor
! PhysicsNet(Space bNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
//this.bNet = (Space) bNet.copy(pMap);
! this.cNet = bNet;
this.spring_c = spring_constant;
this.spring_d = spring_damping;
this.particle_d = particle_damping;
//create Particles and Springs from Vertices of b-Net
! Collection<Vertex> bVertices = bNet.getVertices();
! Map<Vertex, List<Edge>> edgeMap = bNet.getEdgeMap(bVertices);
int counter = 0;
for (Vertex bV : bVertices) {
! particles.put(bV, new PhysicsParticle(bV, new Vertex(0,0,0), new Vertex(0,0,0), mass, bV.isCorner(),counter));
counter++;
}
//create Springs
! Collection<Edge> bEdges = bNet.getEdges();
for (Edge bE : bEdges) {
PhysicsParticle pA = particles.get(bE.getFrom());
--- 23,44 ----
//constructor
! PhysicsNet(Space cNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
//this.bNet = (Space) bNet.copy(pMap);
! this.cNet = cNet;
this.spring_c = spring_constant;
this.spring_d = spring_damping;
this.particle_d = particle_damping;
+ this.solid = isSolid();
//create Particles and Springs from Vertices of b-Net
! Collection<Vertex> bVertices = cNet.getVertices();
! Map<Vertex, List<Edge>> edgeMap = cNet.getEdgeMap(bVertices);
int counter = 0;
for (Vertex bV : bVertices) {
! particles.put(bV, new PhysicsParticle(bV, new Vertex(0,0,0), new Vertex(0,0,0), mass, counter));
counter++;
}
//create Springs
! Collection<Edge> bEdges = cNet.getEdges();
for (Edge bE : bEdges) {
PhysicsParticle pA = particles.get(bE.getFrom());
***************
*** 50,54 ****
}
//create PhysicsSurfaces
! Collection<Surface> bSurfaces = bNet.getSurfaces();
for (Surface bS : bSurfaces) {
//create HashMaps for Surface
--- 52,56 ----
}
//create PhysicsSurfaces
! Collection<Surface> bSurfaces = cNet.getSurfaces();
for (Surface bS : bSurfaces) {
//create HashMaps for Surface
***************
*** 86,89 ****
--- 88,117 ----
}
+ double saveVolume (Space cNet) {
+ double volume = 0.0;
+ if (solid) {
+ volume = calcVolume();
+ ParameterBlock block = cNet.getParameters();
+ if (block == null) {
+ block = new ParameterBlock();
+ cNet.setParameters(block);
+ block.putDouble("Volume", volume);
+ }
+ block.changeDouble("Volume", volume);
+ }
+ return volume;
+ }
+
+ void saveArea (Surface s) {
+ ParameterBlock block = s.getParameters();
+ PhysicsSurface pS = surfaces.get(s);
+ if (block == null) {
+ block = new ParameterBlock();
+ s.setParameters(block);
+ block.putDouble("Area", pS.calcArea());
+ }
+ block.changeDouble("Area", pS.calcArea());
+ }
+
void updatePos(Vertex cV) {
PhysicsParticle pA = particles.get(cV);
***************
*** 125,131 ****
}
! void update(Space guides, double time, double equalConstant, double equalDamping, double rectConstant, double rectDamping, double planeConstant, double planeDamping, double normalForce) {
Iterator it;
//calculate surface forces
it = surfaces.entrySet().iterator();
while (it.hasNext()) {
--- 153,160 ----
}
! void update(Space guides, double time, double equalConstant, double equalDamping, double rectConstant, double rectDamping, double planeConstant, double planeDamping, double volume) {
Iterator it;
//calculate surface forces
+ double currentVolume = saveVolume(cNet);
it = surfaces.entrySet().iterator();
while (it.hasNext()) {
***************
*** 135,139 ****
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
! s.normalForce(guides, time, normalForce);
}
//claculate particle movement
--- 164,172 ----
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
! if (volume>0) {
! double normalForce = s.calcArea()*volume/currentVolume;
! s.normalForce(guides, time, normalForce);
! }
! saveArea((Surface) ee.getKey());
}
//claculate particle movement
***************
*** 163,165 ****
--- 196,229 ----
cNet.update();
}
+
+ //check if c-Net forms a solid.
+ //each edge is connected to 2 surfaces.
+ boolean isSolid() {
+ boolean solid = true;
+ Collection<Edge> cEdges = cNet.getEdges();
+ for (Edge nE : cEdges) {
+ Set<Surface> cSurfaces = nE.getSurfaces();
+ if (cSurfaces.size()<2) solid = false;
+ }
+ return solid;
+ }
+
+ //calculate volume of solid
+ double calcVolume() {
+ double v = 0.0;
+ Iterator it = surfaces.entrySet().iterator();
+ while (it.hasNext()) {
+ Map.Entry ee = (Map.Entry)it.next();
+ Surface s = (Surface)ee.getKey();
+ PhysicsSurface pS = (PhysicsSurface)ee.getValue();
+ List<Vertex> vertices = s.getVertices();
+ Vertex p = vertices.get(0);
+ Vertex n = pS.averageNormal();
+ //n.normalize();
+ double test = p.dot(n);
+ v = v + pS.calcArea()* test;
+ }
+ v = Math.abs(v)/3;
+ return v;
+ }
}
\ No newline at end of file
|
|
From: Sebastian G. <sg...@us...> - 2011-05-05 16:34:04
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory vz-cvs-2.sog:/tmp/cvs-serv26082/src/net/sourceforge/bprocessor/model
Modified Files:
ParameterBlock.java
Log Message:
help->about, image changed
parameters hanging chain
Index: ParameterBlock.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ParameterBlock.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** ParameterBlock.java 13 Jul 2010 09:32:43 -0000 1.20
--- ParameterBlock.java 5 May 2011 16:34:02 -0000 1.21
***************
*** 96,99 ****
--- 96,112 ----
/**
+ * Changes the double value associated with key
+ * @param key String
+ * @param double value
+ */
+ public void changeDouble(String key, double value) {
+ for (Attribute current : parameters) {
+ if (current.getName().equals(key)) {
+ current.setValue(value);
+ }
+ }
+ }
+
+ /**
*
* @param key String
|
|
From: Sebastian G. <sg...@us...> - 2011-05-05 16:34:01
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions
In directory vz-cvs-2.sog:/tmp/cvs-serv26064/src/net/sourceforge/bprocessor/gui/actions
Modified Files:
AboutActionListener.java
Log Message:
help->about, image changed
parameters hanging chain
Index: AboutActionListener.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/AboutActionListener.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AboutActionListener.java 28 Nov 2006 20:51:57 -0000 1.1
--- AboutActionListener.java 5 May 2011 16:33:58 -0000 1.2
***************
*** 57,61 ****
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
ClassLoader cl = Thread.currentThread().getContextClassLoader();
! URL url = cl.getResource("splash3_24bit.png");
JLabel l = new JLabel(new ImageIcon(url));
Container c = frame.getContentPane();
--- 57,61 ----
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
ClassLoader cl = Thread.currentThread().getContextClassLoader();
! URL url = cl.getResource("bprocessor-startup.png");
JLabel l = new JLabel(new ImageIcon(url));
Container c = frame.getContentPane();
***************
*** 77,84 ****
log.error(e.getMessage());
}
! String rest = "<html>The B-processor is a open source project driven by " +
"Alexandra instituttet,<br>" +
"Aarhus School of Architecture and Technological Institute.<br><br>" +
! "To read more about the project visit " +
"<a href=http://www.b-processor.dk>www.b-processor.dk</a></html>";
JEditorPane hmm = new JEditorPane();
--- 77,84 ----
log.error(e.getMessage());
}
! String rest = "<html>B-processor is a open source project driven by " +
"Alexandra instituttet,<br>" +
"Aarhus School of Architecture and Technological Institute.<br><br>" +
! "Read more about the project at " +
"<a href=http://www.b-processor.dk>www.b-processor.dk</a></html>";
JEditorPane hmm = new JEditorPane();
|
|
From: Michael L. <he...@us...> - 2011-05-05 10:22:57
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory vz-cvs-2.sog:/tmp/cvs-serv28622/src/net/sourceforge/bprocessor/gl/view
Modified Files:
Display.java
Log Message:
Save corner property of vertex
New splash screen
Show the normal of selected surface
Index: Display.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -d -r1.109 -r1.110
*** Display.java 6 Mar 2011 23:13:31 -0000 1.109
--- Display.java 5 May 2011 10:22:55 -0000 1.110
***************
*** 613,616 ****
--- 613,627 ----
}
+ private static void drawNormal(Surface surface) {
+ Vertex n = surface.normal();
+ Vertex c = surface.center();
+ Line line = new Line(c, n);
+ Vertex from = line.getOrigin();
+ double dist = camera.distance(from);
+ Vertex to = line.tip(dist);
+ drawVectorBase(from, to);
+ drawVectorTip(from, to);
+ }
+
private static void draw(Surface surface, boolean reverse) {
if (surface.getEdges().size() == 4 && surface.getHoles().size() == 0) {
***************
*** 1381,1384 ****
--- 1392,1402 ----
}
+ private static void drawNormals(Collection<Geometric> geometrics) {
+ for (Geometric current : geometrics) {
+ if (current instanceof Surface) {
+ drawNormal((Surface) current);
+ }
+ }
+ }
private static void hiliteSpaces(Collection<Geometric> geometrics) {
enable(GL.GL_DEPTH_TEST);
***************
*** 1398,1401 ****
--- 1416,1420 ----
if (current instanceof Surface) {
draw((Surface) current, false);
+
}
}
***************
*** 1539,1542 ****
--- 1558,1562 ----
if (!selecting()) {
hiliteSpaces(geometrics);
+ drawNormals(geometrics);
disableClipplanes();
hiliteVertices(geometrics);
|
|
From: Michael L. <he...@us...> - 2011-05-05 10:22:54
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory vz-cvs-2.sog:/tmp/cvs-serv28609/src/net/sourceforge/bprocessor/gui
Modified Files:
GUI.java
Log Message:
Save corner property of vertex
New splash screen
Show the normal of selected surface
Index: GUI.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v
retrieving revision 1.125
retrieving revision 1.126
diff -C2 -d -r1.125 -r1.126
*** GUI.java 4 Mar 2011 17:42:35 -0000 1.125
--- GUI.java 5 May 2011 10:22:52 -0000 1.126
***************
*** 935,939 ****
*/
public void start() {
! plash = new SplashWindow("splash3_24bit.png", this);
setSize(800, 600);
}
--- 935,939 ----
*/
public void start() {
! plash = new SplashWindow("bprocessor-startup.png", this);
setSize(800, 600);
}
|
|
From: Michael L. <he...@us...> - 2011-05-05 10:22:51
|
Update of /cvsroot/bprocessor/model/src/etc
In directory vz-cvs-2.sog:/tmp/cvs-serv28597/src/etc
Modified Files:
bprocessor.xsd
Log Message:
Save corner property of vertex
New splash screen
Show the normal of selected surface
Index: bprocessor.xsd
===================================================================
RCS file: /cvsroot/bprocessor/model/src/etc/bprocessor.xsd,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** bprocessor.xsd 20 May 2010 14:20:05 -0000 1.49
--- bprocessor.xsd 5 May 2011 10:22:48 -0000 1.50
***************
*** 145,148 ****
--- 145,149 ----
<xsd:attribute name="y" type="xsd:double" use="required"/>
<xsd:attribute name="z" type="xsd:double" use="required"/>
+ <xsd:attribute name="corner" type="xsd:boolean" use="optional"/>
</xsd:extension>
</xsd:complexContent>
|
|
From: Sebastian G. <sg...@us...> - 2011-05-02 12:39:10
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv30448/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
PhysicsNet.java PhysicsPackage.java
Log Message:
Physics Net linked to b net
Index: PhysicsPackage.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsPackage.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PhysicsPackage.java 26 Apr 2011 06:23:02 -0000 1.1
--- PhysicsPackage.java 2 May 2011 12:39:06 -0000 1.2
***************
*** 15,21 ****
* 2. Change to original net -> changes new net
* 3. Parameters, toggles and sliders
! * 4. Planarity and regularity of panels
* 5. Add parameters to b-net and save them!
* 6. Subdivision
*/
--- 15,23 ----
* 2. Change to original net -> changes new net
* 3. Parameters, toggles and sliders
! * 4. Planarity and regularity of panels, add bending stiffness!
* 5. Add parameters to b-net and save them!
* 6. Subdivision
+ * 7. Selection => parameter changes to vertices and edges, not only global
+ *
*/
***************
*** 27,30 ****
--- 29,35 ----
Space cNet;
+ HashMap<Edge, Edge> edges = new HashMap();
+ HashMap<Vertex, Vertex> vertices = new HashMap();
+
//parameters
double gravity;
***************
*** 41,44 ****
--- 46,51 ----
double planeDamping;
double normalForce;
+ boolean editNet;
+
public void initialize(Space net) {
***************
*** 52,58 ****
cDamp = 2.0;
parameters.put("Spring Damping [N sec/m]",cDamp);
! restLengthFactor = 1.1;
parameters.put("Spring Restlength Factor",restLengthFactor);
! springConstant = 2.0;
parameters.put("Spring Constant c [N/m]",springConstant);
equalConstant = 0.0;
--- 59,65 ----
cDamp = 2.0;
parameters.put("Spring Damping [N sec/m]",cDamp);
! restLengthFactor = 0.5;
parameters.put("Spring Restlength Factor",restLengthFactor);
! springConstant = 20.0;
parameters.put("Spring Constant c [N/m]",springConstant);
equalConstant = 0.0;
***************
*** 70,73 ****
--- 77,82 ----
normalForce = 0.0;
parameters.put("Normal Surface Force [N]", normalForce);
+ editNet = true;
+ parameters.putBoolean("Edit B-Net", editNet);
***************
*** 84,87 ****
--- 93,107 ----
if (nV.coincides(cV)) {
cV.setCorner(nV.isCorner());
+ vertices.put(nV,cV);
+ }
+ }
+ }
+ //create Edges HashMap
+ Collection<Edge> nEdges = net.getEdges();
+ Collection<Edge> bEdges = cNet.getEdges();
+ for (Edge nE : nEdges) {
+ for (Edge cE : bEdges) {
+ if (nE.equivalent(cE)) {
+ edges.put(nE,cE);
}
}
***************
*** 94,97 ****
--- 114,118 ----
//remove all elements of last iteration
//clear();
+ //////////////////////////////////////////////////////////////////
//get changed parameters
//gravity
***************
*** 111,119 ****
pN.spring_d = cDamp;
//spring restlength factor
! Double oldRLF = restLengthFactor;
restLengthFactor = (Double) parameters.getDouble("Spring Restlength Factor");
! if (oldRLF!=restLengthFactor) {
! pN.updateRestLength(restLengthFactor);
! }
//spring constant
Double oldSpringConstant = springConstant;
--- 132,140 ----
pN.spring_d = cDamp;
//spring restlength factor
! //Double oldRLF = restLengthFactor;
restLengthFactor = (Double) parameters.getDouble("Spring Restlength Factor");
! //if (oldRLF!=restLengthFactor) {
! // pN.updateRestLengthFactor(restLengthFactor);
! //}
//spring constant
Double oldSpringConstant = springConstant;
***************
*** 133,136 ****
--- 154,178 ----
//normal Force
normalForce = (Double) parameters.get("Normal Surface Force [N]");
+ //boolean parameters
+ editNet = (Boolean) parameters.getBoolean("Edit B-Net");
+ /////////////////////////////////////////////////////////////////////////////////////////////
+ //track changes of bNet and modify Physics Net accordingly
+ //update vertices
+ Collection<Vertex> bVertices = net.getVertices();
+ for (Vertex bV : bVertices) {
+ if (bV.isCorner()) {
+ Vertex pV = vertices.get(bV);
+ pV.setX(bV.getX());
+ pV.setY(bV.getY());
+ pV.setZ(bV.getZ());
+ pN.updatePos(pV);
+ }
+ }
+ //update edges
+ Collection<Edge> bEdges = net.getEdges();
+ for (Edge bE : bEdges) {
+ pN.updateRestLength(edges.get(bE), bE.getLength(), restLengthFactor);
+ }
+
//add a union space containing all new elements
***************
*** 149,153 ****
//change p-net
! cNet.edit();
pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, normalForce);
union.add(cNet);
--- 191,199 ----
//change p-net
! if (editNet) {
! net.edit();
! } else {
! cNet.edit();
! }
pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, normalForce);
union.add(cNet);
Index: PhysicsNet.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsNet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PhysicsNet.java 26 Apr 2011 06:23:02 -0000 1.1
--- PhysicsNet.java 2 May 2011 12:39:06 -0000 1.2
***************
*** 22,26 ****
PhysicsNet(Space bNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
! this.bNet = (Space) bNet.copy(pMap);
this.spring_c = spring_constant;
this.spring_d = spring_damping;
--- 22,27 ----
PhysicsNet(Space bNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
! //this.bNet = (Space) bNet.copy(pMap);
! this.bNet = bNet;
this.spring_c = spring_constant;
this.spring_d = spring_damping;
***************
*** 67,70 ****
--- 68,79 ----
}
}
+
+ void updatePos(Vertex cV) {
+ PhysicsParticle pA = particles.get(cV);
+ pA.pos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
+ pA.nPos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
+ pA.lastPos = new Vertex(cV.getX(),cV.getY(), cV.getZ());
+ }
+
void updateMass(double mass) {
Iterator it = particles.entrySet().iterator();
***************
*** 76,80 ****
}
! void updateRestLength(double restLengthFactor) {
Iterator it = springs.entrySet().iterator();
while (it.hasNext()) {
--- 85,89 ----
}
! void updateRestLengthFactor(double restLengthFactor) {
Iterator it = springs.entrySet().iterator();
while (it.hasNext()) {
***************
*** 85,88 ****
--- 94,102 ----
}
+ void updateRestLength(Edge e, double eql, double restLengthFactor) {
+ PhysicsSpring s = (PhysicsSpring)springs.get(e);
+ s.eql = eql * restLengthFactor;
+ }
+
void updateSpringConstant(double springConstant) {
Iterator it = springs.entrySet().iterator();
|
|
From: Sebastian G. <sg...@us...> - 2011-04-26 06:34:01
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv1659/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
PhysicsSurface.java
Log Message:
Physics, change starting value for planarity
Index: PhysicsSurface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/PhysicsSurface.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PhysicsSurface.java 26 Apr 2011 06:23:02 -0000 1.1
--- PhysicsSurface.java 26 Apr 2011 06:33:58 -0000 1.2
***************
*** 44,48 ****
lastDiaLength = dl;
for (Vertex v : vertices) {
! lastPlaneDist.put(v,new Double(100));
}
}
--- 44,48 ----
lastDiaLength = dl;
for (Vertex v : vertices) {
! lastPlaneDist.put(v,new Double(0));
}
}
|
|
From: Sebastian G. <sg...@us...> - 2011-04-26 06:23:05
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv30195/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
NetCommand.java
Added Files:
PhysicsParticle.java PhysicsNet.java PhysicsPlane.java
PhysicsSpring.java PhysicsSurface.java PhysicsPackage.java
Removed Files:
HangingChainPackage.java
Log Message:
Physics System
--- NEW FILE: PhysicsSpring.java ---
package net.sourceforge.bprocessor.model.plugin;
import net.sourceforge.bprocessor.model.Vertex;
//import net.sourceforge.bprocessor.model.plugin.PhysicsParticle;
public class PhysicsSpring {
//properties
PhysicsParticle pA; //Particle at one end of the spring
PhysicsParticle pB; //Particle at other end of the spring
double startL; //original starting length of Spring (generated from b-net)
double eql; //equilibrium length of the spring
double l; //actual length of the spring
double lLast; //last length of the spring
double c; //spring constant
double sf; //force value
double sf_damped; //force value
Vertex fA; //force of the spring acting on Particle A
Vertex fB; //force of the spring acting on Particle B
//Constructor
PhysicsSpring(PhysicsParticle pA, PhysicsParticle pB, double eql, double c) {
this.pA = pA;
this.pB = pB;
this.eql = eql;
this.c = c;
this.l = getLength();
this.startL = this.l;
lLast = l;
sf = 0;
sf_damped = 0;
fA = new Vertex(0,0,0);
fB = new Vertex(0,0,0);
pA.connectSpring(this);
pB.connectSpring(this);
sf=0;
sf_damped = 0;
}
//compute current length of spring
double getLength() {
double sl;
sl = pA.pos.distance(pB.pos);
return sl;
}
//compute current damping factor
double calcDamping(double time, double spring_damping) {
double damping;
//damping = v * spring_d = (distance / time) * spring_d
damping = (l-lLast)*spring_damping / time;
lLast = l;
return damping;
}
//compute spring force
void calcForce(double time, double spring_damping) {
sf = (l-eql)*c;
sf_damped = sf + calcDamping(time, spring_damping);
//get Vector from A to B and vice versa
fA = pB.pos.minus(pA.pos);
fB = pA.pos.minus(pB.pos);
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf_damped);
fB.scaleIt(sf_damped);
}
void update(double time, double spring_damping) {
l = getLength();
calcForce(time, spring_damping);
}
}
--- NEW FILE: PhysicsParticle.java ---
package net.sourceforge.bprocessor.model.plugin;
import net.sourceforge.bprocessor.model.Vertex;
import java.util.*;
public class PhysicsParticle {
//properties
Vertex pos; //position
Vertex nPos; // new position
Vertex vel; //velocity
Vertex a; //acceleration
double m; //mass
Vertex f; //force acting on particle
boolean fix; //fix or movable particle?
int ID; //Particle ID for identification
Vertex aForce; //additional force - sum of other calculations. Is added to acceleration calculation.
Vertex lastPos; //last position of vertex
ArrayList<PhysicsSpring> springs = new ArrayList(); //springs connected to particle
//constructor
PhysicsParticle (Vertex node, Vertex velocity, Vertex acceleration, double mass, boolean fixed, int ID) {
pos = node;
vel = velocity;
a = acceleration;
m = mass;
fix = fixed;
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
this.ID = ID;
aForce = new Vertex(0,0,0);
lastPos = nPos;
}
//add a spring connected to Particle
void connectSpring(PhysicsSpring s) {
springs.add(s);
}
//add force
void addForce(Vertex force) {
aForce = aForce.add(force);
}
//calculate acceleration
void calcAcc(double gravity, double particle_drag) {
f = new Vertex(0,0,0);
//spring forces
for (int i = 0; i<springs.size(); i++) {
PhysicsSpring s = (PhysicsSpring) springs.get(i);
//check paricles of force
if (ID == s.pA.ID) {
f=f.add(s.fA);
}
else {
f=f.add(s.fB);
}
}
//gravity
f = f.add(new Vertex(0,0,gravity*m));
//any other force
f = f.add(aForce);
aForce = new Vertex(0,0,0);
//coefficient of drag, damping
//f = v * -coefficient of damping
f = f.add(vel.scale(-1*particle_drag));
//acceleration
a=f.scale(1.0/m);
}
//move particle
void move(double time, double gravity, double particle_drag) {
if (fix != true) {
nPos = new Vertex(pos.getX(),pos.getY(),pos.getZ());
//calculate acceleration
calcAcc(gravity, particle_drag);
//calculate new position
//pos new = pos old + vel * time + 0.5 * acceleration * time * time
nPos = nPos.add(vel.scale(time));
nPos = nPos.add(a.scale(0.5*time*time));
//calculate new velocity
//vel = acceleration * time
vel = vel.add(a.scale(time));
lastPos = nPos;
}
}
}
--- NEW FILE: PhysicsSurface.java ---
package net.sourceforge.bprocessor.model.plugin;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.*;
import com.sun.net.ssl.internal.ssl.Debug;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.Surface;
public class PhysicsSurface {
Surface bSurf; //the original bNet Surface
PhysicsPlane avPlane; //average Plane of Surface
HashMap<Vertex,PhysicsParticle> particles = new HashMap(); //maps the surface vertices to the corresponding particles
HashMap<Edge,PhysicsSpring> springs = new HashMap(); //maps the surface edges to the corresponding springs
HashMap<Vertex, Double> lastPlaneDist = new HashMap(); //maps the surface vertices to their last average plane distance
double lastLength;
double lastDiaLength;
//constructors
PhysicsSurface (Surface bNetSurface, HashMap<Vertex,PhysicsParticle> VPmap, HashMap<Edge,PhysicsSpring> ESmap) {
bSurf = bNetSurface;
particles = VPmap;
springs = ESmap;
List<Edge> edges = bSurf.getEdges();
//get current average length
double l = 0;
for (Edge e : edges) {
l += e.getLength();
}
l = l/edges.size();
lastLength = l;
//get current average diagonal length
double dl = 0;
List<Vertex> vertices = bSurf.getVertices();
if (vertices.size() == 4) {
dl = vertices.get(0).distance(vertices.get(2)) + vertices.get(1).distance(vertices.get(3));
dl = dl / 2;
}
lastDiaLength = dl;
for (Vertex v : vertices) {
lastPlaneDist.put(v,new Double(100));
}
}
void equalizeEdges(double time, double spring_constant, double damping) {
List<Edge> edges = bSurf.getEdges();
//get average (desired) edge length
double l = 0;
for (Edge e : edges) {
l += e.getLength();
}
l = l/edges.size();
for (Edge e : edges) {
//calculate force on particles using spring equation incl. damping
double sf = (l-e.getLength())*spring_constant;
sf = sf + ((l-lastLength)*damping / time);
lastLength = l;
//get Vector from A to B and vice versa
Vertex fB = e.getTo().minus(e.getFrom());
Vertex fA = e.getFrom().minus(e.getTo());
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf);
fB.scaleIt(sf);
//add forces to corresponding particles
PhysicsParticle pA = particles.get(e.getFrom());
PhysicsParticle pB = particles.get(e.getTo());
pA.addForce(fA);
pB.addForce(fB);
}
}
Vertex averageNormal() {
Vertex nV = new Vertex(0,0,0);
List<Vertex> vertices = bSurf.getVertices();
double num = vertices.size();
if (num>3) {
//if surface has more than 3 vertices
//add first two vertices to the end of the list for loop
vertices.add(vertices.get(0));
vertices.add(vertices.get(1));
for (int i=0; i<num; i++) {
Vertex a = vertices.get(0).minus(vertices.get(1));
Vertex b = vertices.get(2).minus(vertices.get(1));
Vertex n = a.cross(b);
n.normalize();
nV = nV.add(n);
}
nV.normalize();
}
if (num == 3) {
//surface is triangular - there is only one normal
Vertex a = vertices.get(0).minus(vertices.get(1));
Vertex b = vertices.get(2).minus(vertices.get(1));
nV = nV.add(a.cross(b));
//nV = nV.scale(1/3);
nV.normalize();
}
return nV;
}
void normalForce(Space guides, double time, double force) {
List<Vertex> vertices = bSurf.getVertices();
Vertex n = averageNormal();
n.normalize();
n = n.scale(force);
//display force vector
Vertex c = bSurf.center();
Edge eA = new Edge(c,c.add(n));
guides.add(eA);
for (Vertex v : vertices) {
//get corresponding Particle
PhysicsParticle pA = particles.get(v);
//add force to particle
pA.addForce(n);
}
}
void planarize(Space guides, double time, double spring_constant, double spring_damping) {
if (spring_constant!=0) {
List<Vertex> vertices = bSurf.getVertices();
avPlane = new PhysicsPlane(averageNormal(),bSurf.center()); //vertices.get(0));
for (Vertex v : vertices) {
//get corresponding Particle
PhysicsParticle pA = particles.get(v);
//get vector to average plane
Vertex nV = avPlane.PointNormalToPlane(v);
//calculate spring force and damping
double pl = nV.length();
double lastPl = (double) lastPlaneDist.get(v);
double sf = (pl)*spring_constant;
sf = sf + ((pl-lastPl)*spring_damping / time);
//save current length for next calculation
lastPlaneDist.put(v, new Double(pl));
//add force to particle
nV.normalize();
nV = nV.scale(sf);
pA.addForce(nV);
//display force vector
Edge eA = new Edge(v,avPlane.PointProjectToPlane(v));
guides.add(eA);
}
}
}
void quadToRect(Space guides, double time, double spring_constant, double spring_damping) {
//make a quad surface rectangular by equalizing the length of both diagonals
List<Vertex> vertices = bSurf.getVertices();
//these forces are only applied if surface is quad
if (vertices.size() == 4) {
//create List of diagonals
ArrayList<Edge> dEdges = new ArrayList<Edge>();
Edge eA = new Edge(vertices.get(0), vertices.get(2));
guides.add(eA);
dEdges.add(eA);
Edge eB = new Edge(vertices.get(1), vertices.get(3));
guides.add(eB);
dEdges.add(eB);
//get average diagonal length
double dl = (eA.getLength() + eB.getLength()) / 2;
//add spring forces to diagonals
for (Edge e : dEdges) {
//calculate force on particles using spring equation incl. damping
double sf = (dl-e.getLength())*spring_constant;
sf = sf + ((dl-lastDiaLength)*spring_damping / time);
lastDiaLength = dl;
//get Vector from A to B and vice versa
Vertex fB = e.getTo().minus(e.getFrom());
Vertex fA = e.getFrom().minus(e.getTo());
//normalize force Vectors
fA.normalize();
fB.normalize();
//scale force Vectors to force value
fA.scaleIt(sf);
fB.scaleIt(sf);
//add forces to corresponding particles
PhysicsParticle pA = particles.get(e.getFrom());
PhysicsParticle pB = particles.get(e.getTo());
pA.addForce(fA);
pB.addForce(fB);
}
}
}
}
--- HangingChainPackage.java DELETED ---
Index: NetCommand.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/NetCommand.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** NetCommand.java 13 Apr 2011 08:14:53 -0000 1.3
--- NetCommand.java 26 Apr 2011 06:23:02 -0000 1.4
***************
*** 58,61 ****
--- 58,68 ----
}
}
+ public void vertex(Vertex a) {
+ if (vertices != null) {
+ vertices.add(a);
+ } else {
+ owner.add(a);
+ }
+ }
public void endSurface() {
if (vertices != null) {
***************
*** 80,83 ****
--- 87,97 ----
}
+ public void line(Vertex from, Vertex to) {
+ beginSurface();
+ vertex(from);
+ vertex(to);
+ endSurface();
+ }
+
public void circle(double radius) {
int n = 36;
***************
*** 97,101 ****
owner.add(hanging);
this.net = net;
!
}
}
--- 111,121 ----
owner.add(hanging);
this.net = net;
! }
!
! public void initializeNoItem(Space net) {
! owner = net.getOwner();
! //Space hanging = Item.createNet("Hanging Chains");
! //owner.add(hanging);
! this.net = net;
}
}
--- NEW FILE: PhysicsPackage.java ---
package net.sourceforge.bprocessor.model.plugin;
import net.sourceforge.bprocessor.model.Command;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Item;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.plugin.PhysicsNet;
import java.util.*;
/*
* To Do
* 1. Modify new net while simulation is running, i.e. corner property, etc.
* 2. Change to original net -> changes new net
* 3. Parameters, toggles and sliders
* 4. Planarity and regularity of panels
* 5. Add parameters to b-net and save them!
* 6. Subdivision
*/
public class PhysicsPackage {
public static class Springsystem extends NetCommand {
Space union;
PhysicsNet pN; //physical Net
Space cNet;
//parameters
double gravity;
double mass;
double pDamp;
double cDamp;
double restLengthFactor;
double springConstant;
double equalConstant;
double equalDamping;
double rectConstant;
double rectDamping;
double planeConstant;
double planeDamping;
double normalForce;
public void initialize(Space net) {
//parameters
gravity = -9.81;
parameters.put("Gravity [m/s2]", gravity);
mass = 1;
parameters.put("Particle Mass [kg]", mass);
pDamp = 2.0;
parameters.put("Particle Damping [N sec/m]",pDamp);
cDamp = 2.0;
parameters.put("Spring Damping [N sec/m]",cDamp);
restLengthFactor = 1.1;
parameters.put("Spring Restlength Factor",restLengthFactor);
springConstant = 2.0;
parameters.put("Spring Constant c [N/m]",springConstant);
equalConstant = 0.0;
parameters.put("Equal Edges Spring Constant ec [N/m]",equalConstant);
equalDamping = 2.0;
parameters.put("Equal Edges Spring Damping [N sec/m]", equalDamping);
rectConstant = 0.0;
parameters.put("Rectangular Quads Spring Constant rc [N/m]",rectConstant);
rectDamping = 2.0;
parameters.put("Rectangular Quads Spring Damping [N sec/m]", rectDamping);
planeConstant = 0.0;
parameters.put("Planarity Spring Constant pc [N/m]",planeConstant);
planeDamping = 2.0;
parameters.put("Planarity Spring Damping [N sec/m]", planeDamping);
normalForce = 0.0;
parameters.put("Normal Surface Force [N]", normalForce);
super.initializeNoItem(net);
//create copy of b-Net
Map map = new HashMap();
//map = net.getOwnParameters();
cNet = net.copy(map);
//copy corner points
Collection<Vertex> nVertices = net.getVertices();
Collection<Vertex> cVertices = cNet.getVertices();
for (Vertex nV : nVertices) {
for (Vertex cV : cVertices) {
if (nV.coincides(cV)) {
cV.setCorner(nV.isCorner());
}
}
}
//create physics Net
pN = new PhysicsNet(cNet, gravity, springConstant, cDamp, pDamp, mass, restLengthFactor);
}
public void evaluate() {
//remove all elements of last iteration
//clear();
//get changed parameters
//gravity
gravity = (Double) parameters.getDouble("Gravity [m/s2]");
pN.gravity = gravity;
//particle Mass
double oldMass = mass;
mass = (Double) parameters.getDouble("Particle Mass [kg]");
if (mass!=oldMass) {
pN.updateMass(mass);
}
//particle Damping
pDamp = (Double) parameters.getDouble("Particle Damping [N sec/m]");
pN.particle_d =pDamp;
//spring damping
cDamp = (Double) parameters.getDouble("Spring Damping [N sec/m]");
pN.spring_d = cDamp;
//spring restlength factor
Double oldRLF = restLengthFactor;
restLengthFactor = (Double) parameters.getDouble("Spring Restlength Factor");
if (oldRLF!=restLengthFactor) {
pN.updateRestLength(restLengthFactor);
}
//spring constant
Double oldSpringConstant = springConstant;
springConstant = (Double) parameters.get("Spring Constant c [N/m]");
if (oldSpringConstant!=springConstant) {
pN.updateSpringConstant(springConstant);
}
//equal edges parameters
equalConstant = (Double) parameters.get("Equal Edges Spring Constant ec [N/m]");
equalDamping = (Double) parameters.get("Equal Edges Spring Damping [N sec/m]");
//rectangular quads parameters
rectConstant = (Double) parameters.get("Rectangular Quads Spring Constant rc [N/m]");
rectDamping = (Double) parameters.get("Rectangular Quads Spring Damping [N sec/m]");
//Planarity
planeConstant = (Double) parameters.get("Planarity Spring Constant pc [N/m]");
planeDamping = (Double) parameters.get("Planarity Spring Damping [N sec/m]");
//normal Force
normalForce = (Double) parameters.get("Normal Surface Force [N]");
//add a union space containing all new elements
union = (Space) net.getOwner().find("PhysicsSystem");
//check if space was already created
if (union == null) {
union = Item.createUnion("PhysicsSystem");
net.getOwner().add(union);
} else {
union.clear();
}
//add guidelines
Space guides = Item.createUnion("Guidelines");
union.add(guides);
//change p-net
cNet.edit();
pN.update(guides, 0.02, equalConstant, equalDamping, rectConstant, rectDamping, planeConstant, planeDamping, normalForce);
union.add(cNet);
}
}
public PhysicsPackage() {
Command.register(Springsystem.class);
}
}
--- NEW FILE: PhysicsNet.java ---
package net.sourceforge.bprocessor.model.plugin;
import java.util.*;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.Vertex;
import net.sourceforge.bprocessor.model.Surface;
public class PhysicsNet {
//properties
Space bNet;
double gravity = -9.81;
double spring_c = 4.4; //spring constant
double spring_d = 0.5; //spring damping
double particle_d = 3; //particle damping coefficient of drag
HashMap<Vertex,PhysicsParticle> particles = new HashMap();
HashMap<Edge,PhysicsSpring> springs = new HashMap();
HashMap<Surface, PhysicsSurface> surfaces = new HashMap();
PhysicsNet(Space bNet, double gravity, double spring_constant, double spring_damping, double particle_damping, double mass, double restLengthFactor) {
Map pMap = new HashMap();
this.bNet = (Space) bNet.copy(pMap);
this.spring_c = spring_constant;
this.spring_d = spring_damping;
this.particle_d = particle_damping;
//create Particles and Springs from Vertices of b-Net
Collection<Vertex> bVertices = bNet.getVertices();
Map<Vertex, List<Edge>> edgeMap = bNet.getEdgeMap(bVertices);
int counter = 0;
for (Vertex bV : bVertices) {
particles.put(bV, new PhysicsParticle(bV, new Vertex(0,0,0), new Vertex(0,0,0), mass, bV.isCorner(),counter));
counter++;
}
//create Springs
Collection<Edge> bEdges = bNet.getEdges();
for (Edge bE : bEdges) {
PhysicsParticle pA = particles.get(bE.getFrom());
PhysicsParticle pB = particles.get(bE.getTo());
PhysicsSpring pS = new PhysicsSpring(pA,pB,restLengthFactor*pA.pos.distance(pB.pos),spring_c);
springs.put(bE, pS);
pA.connectSpring(pS);
pB.connectSpring(pS);
counter++;;
}
//create PhysicsSurfaces
Collection<Surface> bSurfaces = bNet.getSurfaces();
for (Surface bS : bSurfaces) {
//create HashMaps for Surface
//edges - springs
//vertices - Particles
List<Vertex> bSV = bS.getVertices();
HashMap<Vertex, PhysicsParticle> bSVP= new HashMap();
for (Vertex v : bSV) {
PhysicsParticle p = (PhysicsParticle) particles.get(v);
bSVP.put(v,p);
}
List<Edge> bSE = bS.getEdges();
HashMap<Edge, PhysicsSpring> bSES = new HashMap();
for (Edge e : bSE) {
PhysicsSpring s = (PhysicsSpring) springs.get(e);
bSES.put(e,s);
}
PhysicsSurface pS = new PhysicsSurface(bS,bSVP,bSES);
surfaces.put(bS, pS);
}
}
void updateMass(double mass) {
Iterator it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
p.m = mass;
}
}
void updateRestLength(double restLengthFactor) {
Iterator it = springs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSpring s = (PhysicsSpring)ee.getValue();
s.eql = s.startL * restLengthFactor;
}
}
void updateSpringConstant(double springConstant) {
Iterator it = springs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSpring s = (PhysicsSpring)ee.getValue();
s.c = springConstant;
}
}
void update(Space guides, double time, double equalConstant, double equalDamping, double rectConstant, double rectDamping, double planeConstant, double planeDamping, double normalForce) {
Iterator it;
//calculate surface forces
it = surfaces.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSurface s = (PhysicsSurface)ee.getValue();
s.equalizeEdges(time, equalConstant, equalDamping);
s.quadToRect(guides, time, rectConstant, rectDamping);
s.planarize(guides, time, planeConstant, planeDamping);
s.normalForce(guides, time, normalForce);
}
//claculate particle movement
it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
p.move(time, gravity, particle_d);
}
//move nodes of b-net to particle positions
it = particles.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
Vertex v = (Vertex)ee.getKey();
PhysicsParticle p = (PhysicsParticle)ee.getValue();
v.set(p.nPos);
}
//update springs
it = springs.entrySet().iterator();
while (it.hasNext()) {
Map.Entry ee = (Map.Entry)it.next();
PhysicsSpring s = (PhysicsSpring)ee.getValue();
s.update(time, spring_d);
}
bNet.update();
}
}
--- NEW FILE: PhysicsPlane.java ---
package net.sourceforge.bprocessor.model.plugin;
import net.sourceforge.bprocessor.model.Vertex;
public class PhysicsPlane {
//properties of a plane
//3 points
Vertex[] pPoints = new Vertex[3];
//normal
Vertex nVec = new Vertex(0,0,0);
//origin
Vertex origin;
//directions
Vertex dirX;
Vertex dirY;
//distance
double d = 0;
//constructor from 3 points
PhysicsPlane (Vertex origin, Vertex point1, Vertex point2) {
//save plane points
this.origin = new Vertex(origin.getX(),origin.getY(), origin.getZ());
dirX = new Vertex(point1.getX(),point1.getY(), point1.getZ());
dirY = new Vertex(point2.getX(),point2.getY(), point2.getZ());
pPoints[0] = this.origin;
pPoints[1] = new Vertex(point1.getX(),point1.getY(), point1.getZ());
pPoints[2] = new Vertex(point2.getX(),point2.getY(), point2.getZ());
//get plane directions
dirX = dirX.minus(origin);
dirY = dirY.minus(origin);
//calculate normal
nVec = dirX.cross(dirY);
nVec.normalize();
d = nVec.dot(origin);
}
//constructor from normal and origin
PhysicsPlane (Vertex nVec, Vertex origin) {
this.nVec = nVec.copy();
this.nVec.normalize();
d = nVec.dot(origin);
}
//Normal Vector from point onto Plane
Vertex PointNormalToPlane(Vertex pnt) {
double t0;
Vertex x0;
Vertex lNorm;
Vertex PtoE;
t0 = (d-nVec.dot(pnt)) / (nVec.dot(nVec));
lNorm = new Vertex(nVec.getX(), nVec.getY(),nVec.getZ());
lNorm = lNorm.scale(t0);
x0 = new Vertex (pnt.getX(), pnt.getY(), pnt.getZ());
x0 = x0.add(lNorm);
PtoE = x0;
PtoE = PtoE.minus(pnt);
return PtoE;
}
Vertex PointProjectToPlane(Vertex pnt) {
double t0;
Vertex x0;
Vertex lNorm;
Vertex PtoE;
t0 = (d-nVec.dot(pnt)) / (nVec.dot(nVec));
lNorm = new Vertex(nVec.getX(), nVec.getY(),nVec.getZ());
lNorm = lNorm.scale(t0);
x0 = new Vertex (pnt.getX(), pnt.getY(), pnt.getZ());
x0 = x0.add(lNorm);
PtoE = x0;
return PtoE;
}
}
|
|
From: Sebastian G. <sg...@us...> - 2011-04-13 11:59:02
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv11780/src/net/sourceforge/bprocessor/model/plugin
Modified Files:
HangingChainPackage.java
Log Message:
Hanging Chain
Copy of B-net
Index: HangingChainPackage.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin/HangingChainPackage.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** HangingChainPackage.java 10 Apr 2011 15:00:12 -0000 1.2
--- HangingChainPackage.java 13 Apr 2011 11:59:00 -0000 1.3
***************
*** 2,7 ****
--- 2,10 ----
import net.sourceforge.bprocessor.model.Command;
+ import net.sourceforge.bprocessor.model.Item;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.plugin.CirclePackage.Circle;
+ import java.util.HashMap;
+ import java.util.Map;
public class HangingChainPackage {
***************
*** 11,31 ****
public void initialize(Space net) {
super.initialize(net);
! increase = true;
! radius = 2;
}
public void evaluate() {
clear();
! circle(radius);
! if (increase) {
! radius = radius + 0.1;
! if (radius > 10) {
! increase = false;
! }
} else {
! radius = radius - 0.1;
! if (radius < 2) {
! increase = true;
! }
}
}
}
--- 14,38 ----
public void initialize(Space net) {
super.initialize(net);
!
}
+
public void evaluate() {
+ //remove all elements of last iteration
clear();
! //add a union space containing all new elements
! Space union = (Space) net.getOwner().find("Springsystem");
! //check if space was already created
! if (union == null) {
! union = Item.createUnion("Springsystem");
! net.getOwner().add(union);
} else {
! union.clear();
}
+ //copy the net and move it
+ Map cMap = new HashMap();
+ Space cNet = (Space) net.copy(cMap);
+ cNet.move(0, 0, 2);
+ union.add(cNet);
+
}
}
|
|
From: Sebastian G. <sg...@us...> - 2011-04-13 11:58:56
|
Update of /cvsroot/bprocessor/bprocessor
In directory vz-cvs-2.sog:/tmp/cvs-serv11751
Added Files:
info.txt
Log Message:
Hanging Chain
Copy of B-net
--- NEW FILE: info.txt ---
./build.sh: line 8: [: C:\Program: binary operator expected
Buildfile: build.xml
init:
clean:
[delete] Deleting directory c:\Users\Sebastian\workspace\bprocessor\build
init:
prepare:
[echo] build.compiler = modern
[echo] java.home = c:\Program Files\Java\jdk1.6.0_17\jre
[echo] user.home = C:\Users\Sebastian
[echo] java.class.path = c:/apache_ant/lib/ant-launcher.jar;c:\Users\Sebastian\workspace\bprocessor\.\;c:\Program Files\Java\jre6\lib\ext\QTJava.zip;c:\apache_ant\lib\ant-antlr.jar;c:\apache_ant\lib\ant-apache-bcel.jar;c:\apache_ant\lib\ant-apache-bsf.jar;c:\apache_ant\lib\ant-apache-log4j.jar;c:\apache_ant\lib\ant-apache-oro.jar;c:\apache_ant\lib\ant-apache-regexp.jar;c:\apache_ant\lib\ant-apache-resolver.jar;c:\apache_ant\lib\ant-commons-logging.jar;c:\apache_ant\lib\ant-commons-net.jar;c:\apache_ant\lib\ant-jai.jar;c:\apache_ant\lib\ant-javamail.jar;c:\apache_ant\lib\ant-jdepend.jar;c:\apache_ant\lib\ant-jmf.jar;c:\apache_ant\lib\ant-jsch.jar;c:\apache_ant\lib\ant-junit.jar;c:\apache_ant\lib\ant-launcher.jar;c:\apache_ant\lib\ant-netrexx.jar;c:\apache_ant\lib\ant-nodeps.jar;c:\apache_ant\lib\ant-starteam.jar;c:\apache_ant\lib\ant-stylebook.jar;c:\apache_ant\lib\ant-swing.jar;c:\apache_ant\lib\ant-testutil.jar;c:\apache_ant\lib\ant-trax.jar;c:\apache_ant\lib\ant-weblogic.jar;c:\apache_ant\lib\ant.jar;c:\apache_ant\lib\xercesImpl.jar;c:\apache_ant\lib\xml-apis.jar;c:\Program Files\Java\jdk1.6.0_17\lib\tools.jar
[echo]
[echo] build.dir = c:\Users\Sebastian\workspace\bprocessor/build
[mkdir] Created dir: c:\Users\Sebastian\workspace\bprocessor\build
copylib:
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 2 files to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
[copy] Copying 1 file to c:\Users\Sebastian\workspace\bprocessor\lib
compile:
compile:
[javac] Compiling 3 source files to c:\Users\Sebastian\workspace\bprocessor\build
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Application.java:10: package net.sourceforge.bprocessor.model.plugin does not exist
[javac] import net.sourceforge.bprocessor.model.plugin.Shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Application.java:15: cannot find symbol
[javac] symbol : class Shell
[javac] location: class net.sourceforge.bprocessor.Application
[javac] private Shell shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:12: package net.sourceforge.bprocessor.model.plugin does not exist
[javac] import net.sourceforge.bprocessor.model.plugin.Plugin;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:13: package net.sourceforge.bprocessor.model.plugin does not exist
[javac] import net.sourceforge.bprocessor.model.plugin.Shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:16: cannot find symbol
[javac] symbol : class Shell
[javac] location: class net.sourceforge.bprocessor.Loader
[javac] private Shell shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:18: cannot find symbol
[javac] symbol : class Shell
[javac] location: class net.sourceforge.bprocessor.Loader
[javac] public Loader(Shell shell) {
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Main.java:7: package net.sourceforge.bprocessor.model.plugin does not exist
[javac] import net.sourceforge.bprocessor.model.plugin.Shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Main.java:12: cannot find symbol
[javac] symbol : class Shell
[javac] location: class net.sourceforge.bprocessor.Main
[javac] private Shell shell;
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Application.java:22: cannot find symbol
[javac] symbol : method shell()
[javac] location: class net.sourceforge.bprocessor.model.Project
[javac] shell = Project.getInstance().shell();
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:45: cannot find symbol
[javac] symbol : class Plugin
[javac] location: class net.sourceforge.bprocessor.Loader
[javac] Plugin plugin = (Plugin) clazz.newInstance();
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Loader.java:45: cannot find symbol
[javac] symbol : class Plugin
[javac] location: class net.sourceforge.bprocessor.Loader
[javac] Plugin plugin = (Plugin) clazz.newInstance();
[javac] ^
[javac] c:\Users\Sebastian\workspace\bprocessor\src\net\sourceforge\bprocessor\Main.java:17: cannot find symbol
[javac] symbol : method shell()
[javac] location: class net.sourceforge.bprocessor.model.Project
[javac] shell = Project.getInstance().shell();
[javac] ^
[javac] 12 errors
BUILD FAILED
c:\Users\Sebastian\workspace\bprocessor\build.xml:98: The following error occurred while executing this line:
c:\Users\Sebastian\workspace\bprocessor\src\build.xml:18: Compile failed; see the compiler error output for details.
Total time: 1 second
|
|
From: Sebastian G. <sg...@us...> - 2011-04-13 11:58:51
|
Update of /cvsroot/bprocessor/build
In directory vz-cvs-2.sog:/tmp/cvs-serv11640
Added Files:
info2.txt
Log Message:
Hanging Chain
Copy of B-net
--- NEW FILE: info2.txt ---
C:\Program Files\Java\jdk1.6.0_17
Buildfile: build.xml
init:
clean:
[delete] Deleting directory c:\Users\Sebastian\workspace\build\dist
init:
clean:
[delete] Deleting directory c:\Users\Sebastian\workspace\model\build
init:
clean:
init:
clean:
init:
clean:
init:
clean:
init:
clean:
init:
dist:
[mkdir] Created dir: c:\Users\Sebastian\workspace\build\dist
[mkdir] Created dir: c:\Users\Sebastian\workspace\build\dist\core
[mkdir] Created dir: c:\Users\Sebastian\workspace\build\dist\library
[mkdir] Created dir: c:\Users\Sebastian\workspace\build\dist\plugins
init:
prepare:
[echo] build.compiler = modern
[echo] java.home = c:\Program Files\Java\jdk1.6.0_17\jre
[echo] user.home = C:\Users\Sebastian
[echo] java.class.path = c:/apache_ant/lib/ant-launcher.jar;c:\Users\Sebastian\workspace\build\.\;c:\Program Files\Java\jre6\lib\ext\QTJava.zip;c:\apache_ant\lib\ant-antlr.jar;c:\apache_ant\lib\ant-apache-bcel.jar;c:\apache_ant\lib\ant-apache-bsf.jar;c:\apache_ant\lib\ant-apache-log4j.jar;c:\apache_ant\lib\ant-apache-oro.jar;c:\apache_ant\lib\ant-apache-regexp.jar;c:\apache_ant\lib\ant-apache-resolver.jar;c:\apache_ant\lib\ant-commons-logging.jar;c:\apache_ant\lib\ant-commons-net.jar;c:\apache_ant\lib\ant-jai.jar;c:\apache_ant\lib\ant-javamail.jar;c:\apache_ant\lib\ant-jdepend.jar;c:\apache_ant\lib\ant-jmf.jar;c:\apache_ant\lib\ant-jsch.jar;c:\apache_ant\lib\ant-junit.jar;c:\apache_ant\lib\ant-launcher.jar;c:\apache_ant\lib\ant-netrexx.jar;c:\apache_ant\lib\ant-nodeps.jar;c:\apache_ant\lib\ant-starteam.jar;c:\apache_ant\lib\ant-stylebook.jar;c:\apache_ant\lib\ant-swing.jar;c:\apache_ant\lib\ant-testutil.jar;c:\apache_ant\lib\ant-trax.jar;c:\apache_ant\lib\ant-weblogic.jar;c:\apache_ant\lib\ant.jar;c:\apache_ant\lib\xercesImpl.jar;c:\apache_ant\lib\xml-apis.jar;c:\Program Files\Java\jdk1.6.0_17\lib\tools.jar
[echo]
[mkdir] Created dir: c:\Users\Sebastian\workspace\model\build
checkstyle:
[checkstyle] Running Checkstyle 4.2 on 88 files
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:33:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:38:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:42:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1692: Kind von label bei Einrücktiefe 12 nicht an korrekter Einrücktiefe 10
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1693: Kind von label bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1693: for bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1694: Kind von for bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1695: if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1696: if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1697: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1698: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1699: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1700: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1701: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1702: if rcurly bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1703: if rcurly bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1704: for rcurly bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1711: Kind von label bei Einrücktiefe 12 nicht an korrekter Einrücktiefe 10
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1712: Kind von label bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1712: for bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1713: Kind von for bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1714: if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1715: if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1716: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1717: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1718: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1719: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1720: Kind von if bei Einrücktiefe 20 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1721: if rcurly bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1722: if rcurly bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1723: for rcurly bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1833: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1898:14: 'HPname' entspricht nicht dem Muster '^[a-z]([a-zA-Z0-9]+)*$'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1900:26: Vor '==' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1900:28: Nach '==' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1903:28: Vor '==' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1903:30: Nach '==' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1908:32: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1908:33: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1916:22: 'HPvertices' entspricht nicht dem Muster '^[a-z]([a-zA-Z0-9]+)*$'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1918:49: Zeile enthält ein TAB-Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1920:44: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1920:45: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1920:52: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1920:53: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1921:44: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1921:45: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1921:52: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1921:53: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1922: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1923: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1930:49: Zeile enthält ein TAB-Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:20: Vor '>' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:21: Nach '>' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:25: Nach '{' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:62: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:74: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:75: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:83: Nach ';' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1932:83: Vor '}' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:20: Vor '>' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:21: Nach '>' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:25: Nach '{' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:62: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:77: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:78: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:83: Nach ';' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1933:83: Vor '}' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1936:25: Zeile enthält ein TAB-Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1937:49: Zeile enthält ein TAB-Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:46: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:47: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:51: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:52: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:55: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:70: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1940:71: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1941:49: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1941:50: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1941:53: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1942:51: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1942:63: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1942:64: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:46: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:47: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:53: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:65: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:66: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:70: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1943:71: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1953: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1955: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1979:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1985:28: Vor '>' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1985:29: Nach '>' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1987: Kind von label bei Einrücktiefe 12 nicht an korrekter Einrücktiefe 10
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1988: Kind von label bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1988: if bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1988:67: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1988:68: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1990: if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1990:73: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1990:74: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1991: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1992: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1993: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1994: if rcurly bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1996: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1997: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1998: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:1999: if rcurly bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2001: if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2001:71: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2001:72: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2002: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2003: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2004: Kind von if bei Einrücktiefe 18 nicht an korrekter Einrücktiefe 16
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2005: if rcurly bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2007: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2008: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2009: Kind von if bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 14
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2010: if rcurly bei Einrücktiefe 14 nicht an korrekter Einrücktiefe 12
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2017:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2018:35: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2018:37: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2019:24: Vor '==' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2019:26: Nach '==' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:26: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:27: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:29: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:30: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:32: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:33: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:35: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:36: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:38: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:39: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:42: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2021:43: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:25: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:26: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:27: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:28: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:29: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:30: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:31: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:32: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:33: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:34: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:35: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:36: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:37: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:38: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:40: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2022:41: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:26: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:27: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:28: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:29: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:30: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:31: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:32: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:33: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:34: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:35: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:36: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:37: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:38: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:39: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:40: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:41: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:42: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:43: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:45: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2023:46: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:25: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:26: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:27: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:28: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:30: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2024:31: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2025:19: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2025:20: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2025:24: Vor '<=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2025:26: Nach '<=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2026:42: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2026:43: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2027:42: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2027:43: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2028:42: Vor '*' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2028:43: Nach '*' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2038:14: 'UNRBSname' entspricht nicht dem Muster '^[a-z]([a-zA-Z0-9]+)*$'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2045:26: Vor '>=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2045:28: Nach '>=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2049:19: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2049:20: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2049:24: Vor '<' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2049:25: Nach '<' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2052:49: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2052:50: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2054:19: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2054:20: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2054:24: Vor '<=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2054:26: Nach '<=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2055:61: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2055:62: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2056:29: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2063:19: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2063:20: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2063:24: Vor '<=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2063:45: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2063:46: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2064:21: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2064:22: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2064:26: Vor '<' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2064:27: Nach '<' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:60: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:61: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:65: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:66: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:69: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:70: Vor '/' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2065:71: Nach '/' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:19: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:20: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:22: Nach ';' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:23: Vor '<' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:24: Nach '<' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:42: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:43: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2069:45: Nach ';' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2070:48: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2070:49: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2070:52: Nach ',' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2079: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2081: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:17: Vor '=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:18: Nach '=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:22: Vor '<' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:23: Nach '<' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:47: Vor '+' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2096:48: Nach '+' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2097:15: Vor '>=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2097:17: Nach '>=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2097:25: Vor '<=' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2097:27: Nach '<=' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2112:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2118:28: Vor '>' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2118:29: Nach '>' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2121:65: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2121:66: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2123:71: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2123:72: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2125: Kind von method call bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2126: Kind von method call bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2134:69: Vor '-' befindet sich kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2134:70: Nach '-' folgt kein Leerzeichen.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2136: Kind von method call bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2137: Kind von method call bei Einrücktiefe 16 nicht an korrekter Einrücktiefe 18
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Command.java:2144: for rcurly bei Einrücktiefe 8 nicht an korrekter Einrücktiefe 10
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Instance.java:218:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Item.java:38:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Item.java:38:25: 'DEMO' entspricht nicht dem Muster '^[a-z]([a-zA-Z0-9])*$'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Item.java:38:25: Variable 'DEMO' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:26:8: Nicht benutztes import - java.util.Queue.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:71:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:71:25: Variable 'enableAlarms' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:72:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:72:24: Variable 'temperatureThreshold' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:73:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:73:24: Variable 'humidityThreshold' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:74:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:74:25: Variable 'historic' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:75:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:75:27: Variable 'moldtable' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:1692:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\Project.java:1699:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:6: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:7: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:8:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:11:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\BSplinePackage.java:16:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:17: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:22:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:53: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:101: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:113: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:125: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:132: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:156: Zeile länger als 100 Zeichen
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\FacadePackage.java:210:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\NetCommand.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\NetCommand.java:6: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\NetCommand.java:7:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:9: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:12:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:16:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:19:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:23:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:25:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:28:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:31:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\PluginMonitor.java:35:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:7: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:10:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:14:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:18:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:24:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\plugin\Shell.java:30:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\BrunataHistory.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\BrunataHistory.java:24: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\BrunataHistory.java:27:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\BrunataHistory.java:41:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\BrunataHistory.java:65:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:14: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:17:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:31:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:38:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:47:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:62:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\TargetManager.java:66:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Atom.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Atom.java:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Atom.java:6:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:6:11: Variable 'root' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:8:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:12:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:13: Kind von method def bei Einrücktiefe 6 nicht an korrekter Einrücktiefe 4
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Document.java:16:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:16: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:18:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:29:12: Variable 'document' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:32:20: Variable 'stack' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\DocumentParser.java:33:13: Variable 'root' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:7: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:8:10: Variable 'tag' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:9:14: Variable 'children' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:10:14: Variable 'properties' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:11:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:16:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:23:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:27:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:31:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Element.java:35:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:13: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:50: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:51:12: Variable 'type' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:52:20: Variable 'items' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:54:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:60:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:65:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:69:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:74:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:78: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:79:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:79:19: Variable 'value' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:80:5: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:80:17: Variable 'timestamp' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Persistence.java:83:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:8: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:9:18: Variable 'content' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:11:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:15:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Properties.java:24:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Property.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Property.java:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Property.java:4:10: Variable 'key' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Property.java:5:10: Variable 'value' muss private sein.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\brunata\xml\Property.java:7:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:1: Zeile entspricht nicht der erwarteten Header-Zeile '//---------------------------------------------------------------------------------'.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:12: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:16:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:21:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:25:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\workspace\model\src\net\sourceforge\bprocessor\model\sense\monitor\DataItem.java:27:3: Javadoc-Kommentar fehlt.
[checkstyle] c:\Users\Sebastian\works...
[truncated message content] |
|
From: Sebastian G. <sg...@us...> - 2011-04-13 09:46:41
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin In directory vz-cvs-2.sog:/tmp/cvs-serv29970/src/net/sourceforge/bprocessor/model/plugin Removed Files: TestTest.java Log Message: Deleted unused test files --- TestTest.java DELETED --- |
|
From: Sebastian G. <sg...@us...> - 2011-04-13 09:43:50
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/plugin
In directory vz-cvs-2.sog:/tmp/cvs-serv28148/src/net/sourceforge/bprocessor/model/plugin
Added Files:
TestTest.java
Log Message:
--- NEW FILE: TestTest.java ---
package net.sourceforge.bprocessor.model.plugin;
import net.sourceforge.bprocessor.model.Command;
import net.sourceforge.bprocessor.model.Space;
import net.sourceforge.bprocessor.model.plugin.CirclePackage.Circle;
public class TestTest {
public static class Testsystem extends NetCommand {
boolean increase;
double radius;
public void initialize(Space net) {
super.initialize(net);
increase = true;
radius = 2;
}
public void evaluate() {
clear();
circle(radius);
if (increase) {
radius = radius + 0.1;
if (radius > 10) {
increase = false;
}
} else {
radius = radius - 0.1;
if (radius < 2) {
increase = true;
}
}
}
}
public TestTest() {
Command.register(Testsystem.class);
}
}
|