Author: ruschein
Date: 2010-01-14 13:41:34 -0800 (Thu, 14 Jan 2010)
New Revision: 18912
Modified:
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/force/ForceDirectedLayout.java
Log:
Removed optional use of the broken Euler integrator.
Modified:
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/force/ForceDirectedLayout.java
===================================================================
---
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/force/ForceDirectedLayout.java
2010-01-14 20:31:05 UTC (rev 18911)
+++
coreplugins/trunk/AutomaticLayout/src/csplugins/layout/algorithms/force/ForceDirectedLayout.java
2010-01-14 21:41:34 UTC (rev 18912)
@@ -1,6 +1,6 @@
/*
- Copyright (c) 2007, The Cytoscape Consortium (www.cytoscape.org)
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
The Cytoscape Consortium is:
- Institute for Systems Biology
@@ -79,11 +79,6 @@
*/
public static final String UNWEIGHTEDATTRIBUTE = "(unweighted)";
- /**
- * Integrators
- */
- String[] integratorArray = {"Runge-Kutta", "Euler"};
-
private boolean supportWeights = true;
private LayoutProperties layoutProperties;
Map<LayoutNode,ForceItem> forceItems;
@@ -285,10 +280,6 @@
layoutProperties.add(new Tunable("numIterations", "Number of
Iterations",
Tunable.INTEGER, new
Integer(numIterations)));
- layoutProperties.add(new Tunable("integrator", "Integration
algorithm to use",
- Tunable.LIST, new Integer(0),
- (Object) integratorArray,
(Object) null, 0));
-
// We've now set all of our tunables, so we can read the
property
// file now and adjust as appropriate
layoutProperties.initializeProperties();
@@ -347,18 +338,8 @@
layoutProperties.setProperty(t.getName(),
t.getValue().toString());
}
- t = layoutProperties.get("integrator");
- if ((t != null) && (t.valueChanged() || force)) {
- if (t.valueChanged())
- layoutProperties.setProperty(t.getName(),
t.getValue().toString());
- if (((Integer) t.getValue()).intValue() == 0)
- integrator = new RungeKuttaIntegrator();
- else if (((Integer) t.getValue()).intValue() == 1)
- integrator = new EulerIntegrator();
- else
- return;
- m_fsim.setIntegrator(integrator);
- }
+ integrator = new RungeKuttaIntegrator();
+ m_fsim.setIntegrator(integrator);
edgeWeighter.updateSettings(layoutProperties, force);
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.