at.tuwien.ifs.somtoolbox.reportgenerator
Class SemanticNode

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

public class SemanticNode
extends java.lang.Object

Version:
$Id: SemanticNode.java 3583 2010-05-21 10:07:41Z mayer $
Author:
Martin Waitzbauer (0226025)

Field Summary
 java.util.ArrayList<SemanticClass> Classes
           
 java.lang.String Description
           
 java.lang.Boolean empty
           
 int NordSouth
           
 java.lang.String NSLocationCell
           
private  int Orientation
           
 int[] realCoordinates
           
 int Region
           
 java.lang.String SpecialLocation
           
 java.lang.String WELocationCell
           
 int WestEast
           
 
Constructor Summary
SemanticNode()
           
 
Method Summary
 void addClass(SemanticClass sClass)
           
 java.lang.Boolean containsNoClasses()
           
private  java.lang.String getDegree(int d)
          Returns the String representation of a SemanticNodes Coordinates
FIXME: refactor this
private  java.lang.String getOrientation(int i)
           
private  java.lang.String getShortForm(java.lang.String a, java.lang.String b)
          Gets a short form for directions
FIXME: refactor this
 void setcontainsNoClasses(boolean is)
           
 void setDescription()
          Gives a semantic Explanation of the Units location @
 void setNorthSouthDegree(int d)
           
 void setNSLocationCell(java.lang.String l)
           
 void setOrientation(int i)
          Sets the Orientation 1= North of Middle, 2 = South, 3 = West, 4= east of middle
FIXME: use constancts for this
 void setRealCoordinates(int x, int y)
          Sets the Nodes Coordinates to the given values
 void setRegion(int c)
           
 void setSpecialLocation(java.lang.String Direction)
          This method is used for improving the quality of description of the semantic node.
 void setWELocationCell(java.lang.String l)
           
 void setWestEastDegree(int d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WELocationCell

public java.lang.String WELocationCell

NSLocationCell

public java.lang.String NSLocationCell

NordSouth

public int NordSouth

WestEast

public int WestEast

Region

public int Region

SpecialLocation

public java.lang.String SpecialLocation

realCoordinates

public int[] realCoordinates

empty

public java.lang.Boolean empty

Orientation

private int Orientation

Description

public java.lang.String Description

Classes

public java.util.ArrayList<SemanticClass> Classes
Constructor Detail

SemanticNode

public SemanticNode()
Method Detail

setNorthSouthDegree

public void setNorthSouthDegree(int d)

setWestEastDegree

public void setWestEastDegree(int d)

setWELocationCell

public void setWELocationCell(java.lang.String l)

setNSLocationCell

public void setNSLocationCell(java.lang.String l)

setRegion

public void setRegion(int c)

setSpecialLocation

public void setSpecialLocation(java.lang.String Direction)
This method is used for improving the quality of description of the semantic node. It checks for the given String and the position of the Grid the relation to the surrounding grids.


setRealCoordinates

public void setRealCoordinates(int x,
                               int y)
Sets the Nodes Coordinates to the given values


setcontainsNoClasses

public void setcontainsNoClasses(boolean is)

addClass

public void addClass(SemanticClass sClass)

setDescription

public void setDescription()
Gives a semantic Explanation of the Units location @


containsNoClasses

public java.lang.Boolean containsNoClasses()

setOrientation

public void setOrientation(int i)
Sets the Orientation 1= North of Middle, 2 = South, 3 = West, 4= east of middle
FIXME: use constancts for this


getOrientation

private java.lang.String getOrientation(int i)

getDegree

private java.lang.String getDegree(int d)
Returns the String representation of a SemanticNodes Coordinates
FIXME: refactor this


getShortForm

private java.lang.String getShortForm(java.lang.String a,
                                      java.lang.String b)
Gets a short form for directions
FIXME: refactor this