de.tuberlin.cs.cis.ocl.example.eval
Class Person

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.example.eval.Person

public class Person
extends java.lang.Object

Represents a Person contained in the Example Class Diagram of OCL1.5 chapter 6.2.2.

Author:
fchabar
See Also:
OCL 1.5 Standard

Field Summary
 java.lang.Integer age
          Represents the attribute age
 Bank bankA
          Represents the association end bank
 java.util.Date birthdate
          Represents the attribute birthdate
 java.util.Collection employerA
          Represents the association end employer
 java.lang.String firstName
          Represents the attribute firstName
 Person husbandA
          Represents the association end husband
 java.lang.Boolean isMarried
          Represents the attribute isMarried
 java.lang.Boolean isUnemployed
          Represents the attribute isUnemployed
 java.util.Collection jobA
          Represents the association end job
 java.lang.String lastName
          Represents the attribute lastName
 java.util.Collection managedCompaniesA
          Represents the association end managedCompanies
 Marriage marriageA
          Represents the association end marriage
 Sex sex
          Represents the attribute sex
 Person wifeA
          Represents the association end wife
 
Constructor Summary
Person()
          Constructs a Person.
Person(java.lang.Boolean isMarried, java.lang.Boolean isUnemployed, java.util.Date birthDate, java.lang.Integer age, java.lang.String firstName, java.lang.String lastName, Sex sex)
          Constructs a Person.
Person(java.lang.String firstName, java.lang.String lastName)
          Constucts a Person by first and last name.
 
Method Summary
 void birthdayHappens()
          Represents the operation Person.birthdayHappens()
 boolean equals(java.lang.Object o)
           
 java.lang.Integer income(java.util.Date date)
          Represents the operation Person.income(Date)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isMarried

public java.lang.Boolean isMarried
Represents the attribute isMarried


isUnemployed

public java.lang.Boolean isUnemployed
Represents the attribute isUnemployed


birthdate

public java.util.Date birthdate
Represents the attribute birthdate


age

public java.lang.Integer age
Represents the attribute age


firstName

public java.lang.String firstName
Represents the attribute firstName


lastName

public java.lang.String lastName
Represents the attribute lastName


sex

public Sex sex
Represents the attribute sex


bankA

public Bank bankA
Represents the association end bank


managedCompaniesA

public java.util.Collection managedCompaniesA
Represents the association end managedCompanies


employerA

public java.util.Collection employerA
Represents the association end employer


jobA

public java.util.Collection jobA
Represents the association end job


wifeA

public Person wifeA
Represents the association end wife


husbandA

public Person husbandA
Represents the association end husband


marriageA

public Marriage marriageA
Represents the association end marriage

Constructor Detail

Person

public Person(java.lang.String firstName,
              java.lang.String lastName)
Constucts a Person by first and last name.

Parameters:
firstName - the first name of the Person
lastName - the last name of the Person

Person

public Person(java.lang.Boolean isMarried,
              java.lang.Boolean isUnemployed,
              java.util.Date birthDate,
              java.lang.Integer age,
              java.lang.String firstName,
              java.lang.String lastName,
              Sex sex)
Constructs a Person.


Person

public Person()
Constructs a Person.

Method Detail

income

public java.lang.Integer income(java.util.Date date)
Represents the operation Person.income(Date)


birthdayHappens

public void birthdayHappens()
Represents the operation Person.birthdayHappens()


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object