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

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

public class Company
extends java.lang.Object

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

Author:
fchabar
See Also:
OCL 1.5 Standard

Field Summary
 java.util.Collection employeeA
          Represents the association end employee
 java.util.Collection jobA
          Represents the association end job
 java.util.Collection managerA
          Represents the association end manager
 java.lang.String name
          Represents the attribute name
 java.lang.Integer numberOfEmployees
          Represents the attribute numberOfEmployees
 
Constructor Summary
Company()
          Constructs a company
Company(java.lang.String name, java.lang.Integer numberOfEmployees)
          Constructs a company by its name and number of employees.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void hireEmployee(Person person)
          Represents the Company.hireEmployee(Person) operation
 java.lang.Double stockprice()
          Represents the Company.stockprice() operation
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Represents the attribute name


numberOfEmployees

public java.lang.Integer numberOfEmployees
Represents the attribute numberOfEmployees


managerA

public java.util.Collection managerA
Represents the association end manager


employeeA

public java.util.Collection employeeA
Represents the association end employee


jobA

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

Constructor Detail

Company

public Company(java.lang.String name,
               java.lang.Integer numberOfEmployees)
Constructs a company by its name and number of employees.


Company

public Company()
Constructs a company

Method Detail

stockprice

public java.lang.Double stockprice()
Represents the Company.stockprice() operation


hireEmployee

public void hireEmployee(Person person)
Represents the Company.hireEmployee(Person) operation


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