MOEA Framework 2.3
API Specification

org.moeaframework.core
Interface Variable

All Superinterfaces:
Serializable
All Known Implementing Classes:
BinaryVariable, Grammar, Permutation, Program, RealVariable

public interface Variable
extends Serializable

Interface for decision variables. This interface ensures independent copies of decision variables can be constructed.


Method Summary
 Variable copy()
          Returns an independent copy of this decision variable.
 

Method Detail

copy

Variable copy()
Returns an independent copy of this decision variable. It is required that x.copy() is completely independent from x. This means any method invoked on x.copy() in no way alters the state of x and vice versa. It is typically the case that x.copy().getClass() == x.getClass() and x.copy().equals(x).

Returns:
an independent copy of this decision variable

MOEA Framework 2.3
API Specification

Copyright 2009-2014 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads