|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.example.eval.Company
Represents a Company contained in the Example Class Diagram of OCL1.5 chapter 6.2.2.
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 |
public java.lang.String name
public java.lang.Integer numberOfEmployees
public java.util.Collection managerA
public java.util.Collection employeeA
public java.util.Collection jobA
Constructor Detail |
public Company(java.lang.String name, java.lang.Integer numberOfEmployees)
public Company()
Method Detail |
public java.lang.Double stockprice()
public void hireEmployee(Person person)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |