at.tuwien.ifs.somtoolbox.reportgenerator
Class SemanticNode

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

public class SemanticNode
extends Object

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

Field Summary
 ArrayList<SemanticClass> Classes
           
 String Description
           
 Boolean empty
           
 int NordSouth
           
 String NSLocationCell
           
private  int Orientation
           
 int[] realCoordinates
           
 int Region
           
 String SpecialLocation
           
 String WELocationCell
           
 int WestEast
           
 
Constructor Summary
SemanticNode()
           
 
Method Summary
 void addClass(SemanticClass sClass)
           
 Boolean containsNoClasses()
           
private  String getDegree(int d)
          Returns the String representation of a SemanticNodes Coordinates
FIXME: refactor this
private  String getOrientation(int i)
           
private  String getShortForm(String a, 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(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(String Direction)
          This method is used for improving the quality of description of the semantic node.
 void setWELocationCell(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 String WELocationCell

NSLocationCell

public String NSLocationCell

NordSouth

public int NordSouth

WestEast

public int WestEast

Region

public int Region

SpecialLocation

public String SpecialLocation

realCoordinates

public int[] realCoordinates

empty

public Boolean empty

Orientation

private int Orientation

Description

public String Description

Classes

public 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(String l)

setNSLocationCell

public void setNSLocationCell(String l)

setRegion

public void setRegion(int c)

setSpecialLocation

public void setSpecialLocation(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 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 String getOrientation(int i)

getDegree

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


getShortForm

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