Class Customer

java.lang.Object
jadex.bpmn.tutorial.Customer

public class Customer extends Object
A simple business object representing a customer of an insurance company.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    The age of the customer.
    protected String
    The gender of the customer ('male' or 'female').
    protected boolean
    The marital state of the customer.
    protected String
    The name of the customer.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Customer(String name, String gender, int age, boolean married)
    Create a new customer with initial values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the customer is risk adverse or willing to take risks.
    Get a text representation of the customer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      protected String name
      The name of the customer.
    • gender

      protected String gender
      The gender of the customer ('male' or 'female').
    • age

      protected int age
      The age of the customer.
    • married

      protected boolean married
      The marital state of the customer.
  • Constructor Details

    • Customer

      public Customer(String name, String gender, int age, boolean married)
      Create a new customer with initial values.
  • Method Details

    • isRiskTaking

      public boolean isRiskTaking()
      Check if the customer is risk adverse or willing to take risks.
    • toString

      public String toString()
      Get a text representation of the customer.
      Overrides:
      toString in class Object