at.tuwien.ifs.somtoolbox.reportgenerator
Class SemanticClass

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.reportgenerator.SemanticClass

public class SemanticClass
extends Object

Version:
$Id: SemanticClass.java 3888 2010-11-02 17:42:53Z frank $
Author:
Martin Waitzbauer (0226025)

Field Summary
 int[] CenterPoint
           
 ArrayList<int[]> ClassPartitions
           
private  double Compactness
           
 double[] concentrationmix
           
 ArrayList ConnectedClasses
           
private  ArrayList<SemanticNode> EdgeNodes
           
 int index
           
 int MemberCount
           
 ArrayList QMIntersectionClassArrayListMAX
           
 ArrayList QMIntersectionClassArrayListMIN
           
 int[] regionmix
           
 String Report
           
 ArrayList<SemanticNode> SemanticNodes
           
 int SharedClasses
           
private  ArrayList<int[]> UnitswithClassList
           
 
Constructor Summary
SemanticClass(int index, ArrayList<int[]> UnitswithClassList)
           
 
Method Summary
 void addConcentrationMix(double[] conc)
           
 void addNode(SemanticNode s)
           
 void addRegionMix(int[] regions)
           
 void calculateClassPartitions()
          Lists all different partitions of the class (a Partition is consicered a connected Area of units with no more than 1 as distance between each unit)
 void calculateCompactness()
          Calculates How much of the class units lie in a radius around the middle point ( this radius is the mean over all distances from the middle point to other class points)
 double getCompactness()
           
 ArrayList<SemanticNode> getEdgeNodes()
           
 int[] getFurthestMember()
          calculates the point with the most distance to the class centre
 ArrayList<String> getIntersectionDirections(ArrayList l)
          Returns an ArrayList containing directions of the Units given in the ArrayList, measured to the Center of the Class
private  ArrayList<Integer> getTrail(int i, ArrayList<Integer> trail)
          Finds a Trail for unit i through the class (all units with distance 1 will be added to one trail)
 boolean matchesCompactnessRequirements(EditableReportProperties EP)
          Return true, if the Class matches the wanted compactness in the region index
 void setClassEdges(ArrayList<SemanticNode> edges)
          Sets the Semantic Nodes that were found to be on the edges of the class
 void setMeanPoint(int[] mp)
           
 void setQMIntersectionClassArrayListMAX(ArrayList QMIntersectionClassArrayList)
          Sets the setQMIntersectionClassArrayList, containing the Name of the QM on uneven places, and the IntersectionNodes-ArrayList on even Places for Maximum Units of the QM
 void setQMIntersectionClassArrayListMIN(ArrayList QMIntersectionClassArrayList)
          Sets the setQMIntersectionClassArrayList, containing the Name of the QM on uneven places, and the IntersectionNodes-ArrayList on even Places for Minimum Units of the QM
 void setReport(String rep)
           
 void setSharedClasses(int classes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index

Report

public String Report

CenterPoint

public int[] CenterPoint

SharedClasses

public int SharedClasses

SemanticNodes

public ArrayList<SemanticNode> SemanticNodes

UnitswithClassList

private ArrayList<int[]> UnitswithClassList

ClassPartitions

public ArrayList<int[]> ClassPartitions

ConnectedClasses

public ArrayList ConnectedClasses

regionmix

public int[] regionmix

concentrationmix

public double[] concentrationmix

MemberCount

public int MemberCount

EdgeNodes

private ArrayList<SemanticNode> EdgeNodes

Compactness

private double Compactness

QMIntersectionClassArrayListMAX

public ArrayList QMIntersectionClassArrayListMAX

QMIntersectionClassArrayListMIN

public ArrayList QMIntersectionClassArrayListMIN
Constructor Detail

SemanticClass

public SemanticClass(int index,
                     ArrayList<int[]> UnitswithClassList)
Method Detail

setMeanPoint

public void setMeanPoint(int[] mp)

calculateClassPartitions

public void calculateClassPartitions()
Lists all different partitions of the class (a Partition is consicered a connected Area of units with no more than 1 as distance between each unit)


getTrail

private ArrayList<Integer> getTrail(int i,
                                    ArrayList<Integer> trail)
Finds a Trail for unit i through the class (all units with distance 1 will be added to one trail)


calculateCompactness

public void calculateCompactness()
Calculates How much of the class units lie in a radius around the middle point ( this radius is the mean over all distances from the middle point to other class points)


getFurthestMember

public int[] getFurthestMember()
calculates the point with the most distance to the class centre


setReport

public void setReport(String rep)

getIntersectionDirections

public ArrayList<String> getIntersectionDirections(ArrayList l)
Returns an ArrayList containing directions of the Units given in the ArrayList, measured to the Center of the Class


addRegionMix

public void addRegionMix(int[] regions)

addConcentrationMix

public void addConcentrationMix(double[] conc)

addNode

public void addNode(SemanticNode s)

setSharedClasses

public void setSharedClasses(int classes)

getCompactness

public double getCompactness()

matchesCompactnessRequirements

public boolean matchesCompactnessRequirements(EditableReportProperties EP)
Return true, if the Class matches the wanted compactness in the region index


setClassEdges

public void setClassEdges(ArrayList<SemanticNode> edges)
Sets the Semantic Nodes that were found to be on the edges of the class


getEdgeNodes

public ArrayList<SemanticNode> getEdgeNodes()

setQMIntersectionClassArrayListMAX

public void setQMIntersectionClassArrayListMAX(ArrayList QMIntersectionClassArrayList)
Sets the setQMIntersectionClassArrayList, containing the Name of the QM on uneven places, and the IntersectionNodes-ArrayList on even Places for Maximum Units of the QM


setQMIntersectionClassArrayListMIN

public void setQMIntersectionClassArrayListMIN(ArrayList QMIntersectionClassArrayList)
Sets the setQMIntersectionClassArrayList, containing the Name of the QM on uneven places, and the IntersectionNodes-ArrayList on even Places for Minimum Units of the QM