19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24.2.5 opr ∨(self,other: BooleanInterval): BooleanInterval<br />

24.2.6 opr ⊕(self,other: BooleanInterval):BooleanInterval<br />

<strong>The</strong> logical exclusive OR operator ∨ ( XOR ) returns Impossible if either argument is Impossible; otherwise it returns<br />

Uncertain if either argument is Uncertain; otherwise it returns False if the arguments are strictly equivalent;<br />

otherwise it returns True. It obeys the interval containment rule.<br />

<strong>The</strong> operator ⊕ ( OPLUS ) does the same thing as ∨ . <strong>The</strong> ∨ or ⊕ operator may be described by this table:<br />

∨ or ⊕ Uncertain True False Impossible<br />

Uncertain Uncertain Uncertain Uncertain Impossible<br />

True Uncertain False True Impossible<br />

False Uncertain True False Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

24.2.7 opr ≡(self,other: BooleanInterval):BooleanInterval<br />

24.2.8 opr =(self,other: BooleanInterval):BooleanInterval<br />

24.2.9 opr ↔(self,other: BooleanInterval):BooleanInterval<br />

<strong>The</strong> logical equivalence, or exclusive NOR, operator ≡ ( EQV ) returns Impossible if either argument is Impossible;<br />

otherwise it returns Uncertain if either argument is Uncertain; otherwise it returns True if the arguments are strictly<br />

equivalent; otherwise it returns False. It obeys the interval containment rule. (Thus its behavior on boolean interval<br />

values is not the same as that of the strict equivalence operator = .)<br />

<strong>The</strong> equality operator = and the if-and-only-if operator ↔ ( IFF ) do the same thing as ≡ . <strong>The</strong> ≡ or = or ↔<br />

operator may be described by this table:<br />

≡ or = or ↔ Uncertain True False Impossible<br />

Uncertain Uncertain Uncertain Uncertain Impossible<br />

True Uncertain True False Impossible<br />

False Uncertain False True Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

24.2.10 opr →(self,other: BooleanInterval):BooleanInterval<br />

<strong>The</strong> logical implication operator → ( IMPLIES ) returns Impossible if either argument is Impossible; otherwise it<br />

returns True if the first argument is False or the second argument is True; otherwise it returns Uncertain if either<br />

argument is Uncertain; otherwise it returns False. It obeys the interval containment rule. <strong>The</strong> → operator may be<br />

described by this table:<br />

→ Uncertain True False Impossible<br />

Uncertain Uncertain True Uncertain Impossible<br />

True Uncertain True False Impossible<br />

False True True True Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!