%
% Good old problem3, adapted for this series of tests
%

%%%%%%%%%%%%%%%%%%      Initial Situation       %%%%%%%%%%%%%%%%%%%% 
%%%%%%%%%%%%%%%%%% FAULTS and OTHER EXCEPTIONS  %%%%%%%%%%%%%%%%%%%% 

has_leak(ffm2).
has_leak(fom3).
has_leak(rfm3).
has_leak(rfm4).
has_leak(lom1).
has_leak(lfx345).

stuck(rfi345a,closed).
stuck(roi345b,closed).
stuck(rfi12,closed).
stuck(lx12,closed).

h(in_state(ffm2,open),0).
h(in_state(fom3,open),0).
h(in_state(lfx345,open),0).
h(in_state(lom1,open),0).
h(in_state(rfm3,open),0).
h(in_state(rfm4,open),0).


%%%%%%%%%%%%     GOALS     %%%%%%%%%%%%%

% Maneuver to be performed: minus_z

goal(T,fwd_rcs) :- time(T),
                   h(maneuver_of(minus_z,fwd_rcs),T).

goal(T,left_rcs) :- time(T),
                   h(maneuver_of(minus_z,left_rcs),T).

goal(T,right_rcs) :- time(T),
                   h(maneuver_of(minus_z,right_rcs),T).

