All Packages Class Hierarchy This Package Previous Next Index
Class tadt.standard.ExtendedBoolean
java.lang.Object
|
+----tadt.standard.ExtendedBoolean
- public class ExtendedBoolean
- extends Object
This class implements the standard boolean operations on a Two-Valued Logic.
-
ExtendedBoolean(boolean)
- Build an ExtendedBoolean from a boolean value.
-
ExtendedBoolean(boolean, boolean)
- Build an ExtendedBoolean from two boolean values.
-
and(ExtendedBoolean)
- And this one with another.
-
not(ExtendedBoolean)
- Not.
-
or(ExtendedBoolean)
- Or this one with another.
-
satisfied()
- Satisfied?
-
unsatisfied()
- Unsatisfied?
ExtendedBoolean
public ExtendedBoolean(boolean satisfied)
- Build an ExtendedBoolean from a boolean value.
- Parameters:
- satisfied - - truth condition of the true part
ExtendedBoolean
public ExtendedBoolean(boolean satisfied,
boolean unsatisfied)
- Build an ExtendedBoolean from two boolean values. Not implemented for
a two-valued logic.
- Parameters:
- satisfied - - truth condition of the true part
- unsatisfied - - truth condition of the false part
and
public ExtendedBoolean and(ExtendedBoolean other)
- And this one with another.
- Parameters:
- other - - the other one
- Returns:
- this && other
or
public ExtendedBoolean or(ExtendedBoolean other)
- Or this one with another.
- Parameters:
- other - - the other one
- Returns:
- this || other
not
public ExtendedBoolean not(ExtendedBoolean other)
- Not.
- Returns:
- !this
satisfied
public boolean satisfied()
- Satisfied?
- Returns:
- true if truth condition is represented
unsatisfied
public boolean unsatisfied()
- Unsatisfied?
- Returns:
- true if false condition is represented
All Packages Class Hierarchy This Package Previous Next Index