Skip to content

Commit

Permalink
Remove unsupported fault event types and gates types
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog authored and blcham committed Oct 3, 2024
1 parent 8290f54 commit 968c098
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/models/eventModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const CONTEXT = Object.assign({}, ctx, ABSTRACT_CONTEXT, FAILURE_MODE_CON
export enum EventType {
BASIC = "BASIC",
EXTERNAL = "EXTERNAL",
UNDEVELOPED = "UNDEVELOPED",
CONDITIONING = "CONDITIONING",
// UNDEVELOPED = "UNDEVELOPED", // TODO to enable requires to allow setting manual failure rate
// CONDITIONING = "CONDITIONING",
INTERMEDIATE = "INTERMEDIATE",
}

Expand Down Expand Up @@ -153,8 +153,13 @@ export enum GateType {
// returns true as first argument of array if option should be enabled in select
export const gateTypeValues = (): [boolean, GateType][] =>
Object.values(GateType).map((value) => {
if (value === GateType.UNUSED) {
return [false, GateType.UNUSED];
if (
value === GateType.UNUSED ||
value === GateType.PRIORITY_AND ||
value === GateType.INHIBIT ||
value === GateType.XOR
) {
return [false, value];
} else {
return [true, value];
}
Expand Down

0 comments on commit 968c098

Please sign in to comment.