sources
Class AbstractFlow

java.lang.Object
  extended bysources.AbstractFlow

public class AbstractFlow
extends java.lang.Object

a class that represents a flow


Field Summary
 int[] cases
          cases connected to this flow
 int from
          number of category of source variable
 int to
          number of category of target variable
 double[] weights
          weight values connected to this flow
 double xf
          x-coordinate of the source of this flow
 double xt
          x-coordinate of the target of this flow
 double yf
          y-coordinate of the source of this flow
 double yt
          y-coordinate of the target of this flow
 
Constructor Summary
AbstractFlow(int fr, int t, int[] cas, double[] weight, double x1, double y1, double x2, double y2)
          Creates new AbstractFlow
 
Method Summary
static java.util.Vector createFlows(CategorialVariable from, CategorialVariable to, ContinuousVariable weights, ContinuousVariable x1, ContinuousVariable y1, ContinuousVariable x2, ContinuousVariable y2, boolean group)
          returns a Vector of flows created from a set of variables
 double getSelWeight(Selectioner slect)
          returns the selected value of weights
 double getWeight()
          returns the sum of weights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public int from
number of category of source variable


to

public int to
number of category of target variable


cases

public int[] cases
cases connected to this flow


weights

public double[] weights
weight values connected to this flow


xf

public double xf
x-coordinate of the source of this flow


yf

public double yf
y-coordinate of the source of this flow


xt

public double xt
x-coordinate of the target of this flow


yt

public double yt
y-coordinate of the target of this flow

Constructor Detail

AbstractFlow

public AbstractFlow(int fr,
                    int t,
                    int[] cas,
                    double[] weight,
                    double x1,
                    double y1,
                    double x2,
                    double y2)
Creates new AbstractFlow

Parameters:
fr - category of source
t - category of target
cas - cases connected to flow
weight - weights connected to flow
x1 - x-coordinate of source
y1 - y-coordinate of source
x2 - x-coordinate of target
y2 - y-coordinate of target
Method Detail

getWeight

public double getWeight()
returns the sum of weights

Returns:
the sum of weights

getSelWeight

public double getSelWeight(Selectioner slect)
returns the selected value of weights

Parameters:
slect - the Selectioner
Returns:
the selected value

createFlows

public static java.util.Vector createFlows(CategorialVariable from,
                                           CategorialVariable to,
                                           ContinuousVariable weights,
                                           ContinuousVariable x1,
                                           ContinuousVariable y1,
                                           ContinuousVariable x2,
                                           ContinuousVariable y2,
                                           boolean group)
returns a Vector of flows created from a set of variables

Parameters:
from - source categrial variable
to - target category variable
weights - continuous weight variable, if null no weights
x1 - x-coordinates of sources
y1 - y-coordinates of sources
x2 - x-coordinates of targets
y2 - y-coordinates of targets
group - a categorial variable for grouping, if null no grouping
Returns:
the Vector of flows