Note that there are some explanatory texts on larger screens.

plurals
  1. POjava local variable unavailable
    primarykey
    data
    text
    <p>I'm getting the following error from the eclipse debugger: local variable unavailable. Tried to trim the code as much as possible. The problem is pretty simple, I have to use the DivisiveUI UpdateLog() method, from the Divise class, using variables from the Cluster class. The Divise has a list containing all of the clusters. Divisive and DivisiveUI has a reference to each other. How can I get access to the variables: sumDistance, avgDistance from the Divisive class? Tried writing a method in the Divisive class, still couldn't access the needed variables :| Thank you!</p> <p>Error crops at log.append(text+"\n"); Source Not Found.</p> <p>Divisive:</p> <pre><code> package clusters; import java.util.LinkedList; public class Divisive implements Runnable { LinkedList&lt;Record&gt; mainTable; LinkedList&lt;Cluster&gt; clusterList; int meassureType; DivisiveUI parent; int clusterCount; Divisive(LinkedList&lt;Record&gt; mainTable, DivisiveUI parent) { this.parent=parent; this.mainTable=new LinkedList&lt;Record&gt;(mainTable); setMeassureType(0); } } </code></pre> <p>DivisiveUI:</p> <pre><code> package clusters; @SuppressWarnings("serial") public class DivisiveUI extends JPanel implements Runnable{ ClusteringSelection parent; Divisive divisive; JTextField clusterCount; JTextArea log; public void UpdateLog(String text) { log.append(text+"\n"); log.setCaretPosition(log.getDocument().getLength()); } } </code></pre> <p>Cluster:</p> <pre><code> package clusters; public class Cluster { LinkedList&lt;Record&gt; table; LinkedList&lt;MatrixRow&gt; matrix; LinkedList&lt;Double&gt; center; double sumDistance; double avgDistance; int meassureType; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload