Package jadex.bpmn.tutorial
Class Customer
- java.lang.Object
-
- jadex.bpmn.tutorial.Customer
-
public class Customer extends java.lang.ObjectA simple business object representing a customer of an insurance company.
-
-
Field Summary
Fields Modifier and Type Field Description protected intageThe age of the customer.protected java.lang.StringgenderThe gender of the customer ('male' or 'female').protected booleanmarriedThe marital state of the customer.protected java.lang.StringnameThe name of the customer.
-
Constructor Summary
Constructors Constructor Description Customer(java.lang.String name, java.lang.String gender, int age, boolean married)Create a new customer with initial values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRiskTaking()Check if the customer is risk adverse or willing to take risks.java.lang.StringtoString()Get a text representation of the customer.
-