CheckableObject [] theRobustArray; RobustArray (CheckableObject [] theArray)
{
checkState = new boolean [theArray.length]; theRobustArray = theArray ;
} //RobustArray
public void assessDamage () throws ArrayDamagedException
{
boolean hasBeenDamaged = false ;
for (int i = 0; i <this.theRobustArray.length ; i++)
{
if (! theRobustArray [i].check ())
{
checkState [i] = true ;
hasBeenDamaged = true;
}
else
checkState [i] = false ;
}
if (hasBeenDamaged)
throw new ArrayDamagedException ();
} //assessDamage
} // RobustArray
استرداد أو استعادة الخطأ Fault recovery
الاسترداد المتقدم الأمامي Forward recovery بتطبيق الإصلاحات لحالة
النظام التالفة corrupted system state.
الاسترداد المتقهقر الخلفي أو العكسي Backward recovery : باستعادة Restore حالة النظام إلى حالة آمنة معروفة known safe state. غالبا ما يكون الاسترداد المتقدم الأمامي مخصصا في مجال التطبيقات application specific ويكون مجال المعرفة domain knowledge مطلوبا لحساب تصحيحات الحالة المحتملة possible state corrections.
الاسترداد المتقهقر الخلفي أو العكسى أبسط ويتم الاحتفاظ بتفاصيل حالة آمنة التي تحل محل حالة النظام التالفة corrupted system state.
(334)
ص ٣٣٤