Вы находитесь на странице: 1из 1

How Command Pattern works?

Patient Reg Delegate Patient Reg controller

acceptNewPatient(pb,ab)
{
command.set acceptNew
PatientBean(pb); Patient(command){
Command.setAddress }
Bean(ab);
Controller.acceptNew
Patient(command);

}
Patient

create(pb,ab){
setPatientBean(pb){
} execute(){ }
p.excute();
setAddressBean(ab){ }
}

getPatientBean(pb){
}

getAddressBean(pb){ New Patient command create(ab){


} }

Address