CSC407/ECE450 Assignment 1b Sample Solution

plan.dom
Class CustomerRequest

java.lang.Object
  |
  +--plan.dom.CustomerRequest

public class CustomerRequest
extends java.lang.Object

The request of a customer for a feature.


Field Summary
private  Customer customer
           
private  int desirability
           
 
Constructor Summary
CustomerRequest(Feature f, Customer c, int desirability)
          Create a customer request from customer "c" for feature "f" with desirability "d".
 
Method Summary
 Customer getCustomer()
           
 int getDesirability()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

desirability

private int desirability

customer

private Customer customer
Constructor Detail

CustomerRequest

public CustomerRequest(Feature f,
                       Customer c,
                       int desirability)
Create a customer request from customer "c" for feature "f" with desirability "d".
Parameters:
f - the feature being requested
c - the customer requesting the feature
desirability - the level of desire of the customer for the feature. Must be between 1 and 10 inclusive.
Method Detail

getDesirability

public int getDesirability()

getCustomer

public Customer getCustomer()

CSC407/ECE450 Assignment 1b Sample Solution