fhm.edu.fem.calc.objects
Class Calculation

java.lang.Object
  extended by fhm.edu.fem.calc.objects.Calculation

public class Calculation
extends java.lang.Object

Class Description: This class acts as super container of a calculation holding the calculation's conditions

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected  java.util.List<Condition> conditions
           
protected  int id
           
 
Constructor Summary
Calculation(int id, java.util.List<Condition> conditions)
          Construct a new Calculation
 
Method Summary
 java.util.List<Condition> getConditions()
          Retrieve the conditions from this calculation
 java.lang.String toString()
          Implementation of the toString() method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conditions

protected java.util.List<Condition> conditions

id

protected int id
Constructor Detail

Calculation

public Calculation(int id,
                   java.util.List<Condition> conditions)
Construct a new Calculation

Parameters:
id, - the ID number of the calculation
conditions, - the conditions this calculation needs
Method Detail

getConditions

public java.util.List<Condition> getConditions()
Retrieve the conditions from this calculation

Returns:
the condition list

toString

public java.lang.String toString()
Implementation of the toString() method

Overrides:
toString in class java.lang.Object
Returns:
a string visualization of the element