| |
|
| java.lang.Object org.mandarax.examples.crm.domainmodel.BusinessObject org.mandarax.examples.crm.domainmodel.Customer
Customer | public class Customer extends BusinessObject (Code) | | Represents customers. Note that there are some method to get the turnover.
These methods are used as functions to build the knowledge base.
(rules like: if the turnover of a customer in the last 6 month was more than
500$ then ..".
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.2 |
Customer | public Customer()(Code) | | Constructor.
|
Customer | public Customer(int anId, String aFirstName, String aName)(Code) | | Constructor.
Parameters: anId - int Parameters: aFirstName - java.lang.String Parameters: aName - java.lang.String |
equals | public boolean equals(Object obj)(Code) | | Compares objects.
boolean Parameters: obj - java.lang.Object |
getFirstName | public String getFirstName()(Code) | | Get the first name.
java.lang.String |
getId | public int getId()(Code) | | Get the id.
int |
getName | public String getName()(Code) | | Get the name.
java.lang.String |
getTurnover | public double getTurnover(int month)(Code) | | Get the turnover during the last months.
double Parameters: month - int |
getTurnover | public double getTurnover(int month, KindOfPayment kop)(Code) | | Get the turnover in the last numberOfMonth
using the kind of payment.
double Parameters: month - int Parameters: kop - KindOfPayment |
hashCode | public int hashCode()(Code) | | Get the hash code of the object.
int |
setFirstName | public void setFirstName(String aFirstName)(Code) | | Set the first name.
Parameters: aFirstName - java.lang.String |
setId | public void setId(int id)(Code) | | Set the id.
Parameters: id - the id |
setName | public void setName(String aName)(Code) | | Set the name.
Parameters: aName - java.lang.String |
toString | public String toString()(Code) | | COnvert the object to a string.
java.lang.String |
|
|
|