Class BooleanVariable

    • Constructor Detail

      • BooleanVariable

        public BooleanVariable()
      • BooleanVariable

        public BooleanVariable​(boolean b)
        Parameters:
        b - initial value for this variable
    • Method Detail

      • copyState

        public void copyState​(BooleanVariable other)
        Description copied from interface: IVariable
        Set this variable to have the same state as another one
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public boolean getValue()
        Returns:
        the value of this variable
      • or

        public void or​(BooleanVariable other)
        Throws:
        java.lang.IllegalArgumentException - if other is null
      • set

        public void set​(boolean b)