void UpdateDilation(String womanName, int increaseDilation) { // UPDATE ITEM Woman mother = new Woman(); mother.name = womanName; mother.dilation = increaseDilation; bh.Update(mother); }
void Update(Woman mother) { Woman temp; int i = getNameIndex(mother.name); temp = A.get(i); temp.dilation = A.get(i).dilation + mother.dilation; temp.name = A.get(i).name; temp.order = A.get(i).order; A.set(i, temp); shiftUp(i); shiftDown(i); }
void ArriveAtHospital(String womanName, int dilation) { // INSERT ITEM Woman mother = new Woman(); mother.name = womanName; mother.dilation = dilation; bh.Insert(mother); }