Class Variable<T>

java.lang.Object
jeco.core.problem.Variable<T>
Type Parameters:
T - Type of the variable.

public class Variable<T> extends Object
Class representing a variable in a problem.
  • Field Details

    • value

      protected T value
      Value of the variable.
  • Constructor Details

    • Variable

      public Variable(T value)
      Constructor.
      Parameters:
      value - Value of the variable.
  • Method Details

    • getValue

      public T getValue()
      Get the value of the variable.
      Returns:
      Value of the variable.
    • setValue

      public void setValue(T value)
      Set the value of the variable.
      Parameters:
      value - Value of the variable.
    • clone

      public Variable<T> clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object right)
      Overrides:
      equals in class Object