tudresden.ocl.test.royloy
Class Person
java.lang.Object
tudresden.ocl.test.royloy.RLObject
tudresden.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
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
Person
public Person(String name)
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.