Package hec.model

Class LogicalOperator

java.lang.Object
hec.model.LogicalOperator
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable

public class LogicalOperator extends Object implements AsciiSerializable, Cloneable
See Also:
  • Field Details

  • Constructor Details

    • LogicalOperator

      public LogicalOperator()
    • LogicalOperator

      public LogicalOperator(int operator)
  • Method Details

    • equals

      public boolean equals(Object parm1)
      Overrides:
      equals in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • getOperator

      public int getOperator()
      Returns the operator that this object represents. The operator will be one of the following, AND_OPERATOR, OR_OPERATOR, or NO_OPERATOR.
      Returns:
      int value representing the operator type.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful