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.11 opr ∧(self,other: BooleanInterval): BooleanInterval<br />

<strong>The</strong> logical NAND (NOT AND) operator ∧ ( NAND ) returns Impossible if either argument is Impossible; otherwise it<br />

returns True if either argument is False; otherwise it returns Uncertain if either argument is Uncertain; otherwise<br />

it returns False. It obeys the interval containment rule. <strong>The</strong> ∧ operator may be described by this table:<br />

∧ Uncertain True False Impossible<br />

Uncertain Uncertain Uncertain True Impossible<br />

True Uncertain False True Impossible<br />

False True True True Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

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

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

returns False if either argument is True; otherwise it returns Uncertain if either argument is Uncertain; otherwise<br />

it returns True. It obeys the interval containment rule. <strong>The</strong> ∨ operator may be described by this table:<br />

∨ Uncertain True False Impossible<br />

Uncertain Uncertain False Uncertain Impossible<br />

True False False False Impossible<br />

False Uncertain False True Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

24.2.13 opr ∈(other: Boolean,self):Boolean<br />

<strong>The</strong> operator ∈ ( IN ) returns true if its first argument, a boolean value, is contained in its second argument, a boolean<br />

interval regarded as a set; otherwise it returns false . <strong>The</strong> ∈ operator may be described by this table:<br />

∈ Uncertain True False Impossible<br />

true true true false false<br />

false true false true false<br />

24.2.14 opr ∩(self,other: BooleanInterval): BooleanInterval<br />

<strong>The</strong> intersection operator ∩ ( INTERSECTION or CAP ) returns Impossible if either argument is Impossible; otherwise,<br />

if either argument is Uncertain, it returns the other argument; otherwise, if the arguments are the same value<br />

(strictly equivalent), it returns that value; otherwise it returns Impossible. <strong>The</strong> ∩ operator may be described by this<br />

table:<br />

∩ Uncertain True False Impossible<br />

Uncertain Uncertain True False Impossible<br />

True True True Impossible Impossible<br />

False False Impossible False Impossible<br />

Impossible Impossible Impossible Impossible Impossible<br />

189

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

Saved successfully!

Ooh no, something went wrong!