Dresden OCL Toolkit

tudresden.ocl.test.royloy
Class Person

java.lang.Object
  extended bytudresden.ocl.test.royloy.RLObject
      extended bytudresden.ocl.test.royloy.Person
All Implemented Interfaces:
Comparable, Serializable

public class Person
extends RLObject
implements Comparable

The Person of the Person-Company model.

See Also:
Serialized Form

Field Summary
 long age
           
 HashSet employers
           
protected  Person husband
           
 float incomeaftertax
           
 boolean isMarried
           
 boolean isUnemployed
           
 HashSet managedCompanies
           
 String name
           
protected  Person wife
           
 
Fields inherited from class tudresden.ocl.test.royloy.RLObject
allObjects, description, id, idCounter, popFile
 
Constructor Summary
Person(String name)
           
 
Method Summary
 boolean assertTrue()
           
 int compareTo(Object o)
           
 float getIncomeAfterTax(float tax)
           
 void marry(Person wife)
           
 
Methods inherited from class tudresden.ocl.test.royloy.RLObject
assertAll, getID, getObjectWithID, loadPopFile, main, report, setIDCounter, storePopFile, toString, toXString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name

age

public long age

isMarried

public boolean isMarried

isUnemployed

public boolean isUnemployed

managedCompanies

public HashSet managedCompanies

employers

public HashSet employers

wife

protected Person wife

husband

protected Person husband

incomeaftertax

public float incomeaftertax
Constructor Detail

Person

public Person(String name)
Method Detail

getIncomeAfterTax

public float getIncomeAfterTax(float tax)

marry

public void marry(Person wife)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

assertTrue

public boolean assertTrue()
Specified by:
assertTrue in class RLObject

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.