Package jadex.bpmn.tutorial
Class Customer
- java.lang.Object
-
- jadex.bpmn.tutorial.Customer
-
public class Customer extends java.lang.Object
A simple business object representing a customer of an insurance company.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
age
The age of the customer.protected java.lang.String
gender
The gender of the customer ('male' or 'female').protected boolean
married
The marital state of the customer.protected java.lang.String
name
The 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 boolean
isRiskTaking()
Check if the customer is risk adverse or willing to take risks.java.lang.String
toString()
Get a text representation of the customer.
-