net.sourceforge.cilib.type.types
Class Types

java.lang.Object
  extended by net.sourceforge.cilib.type.types.Types

public final class Types
extends Object

Author:
gpampara

Method Summary
static int getDimension(Type value)
          Get the dimension of the provided Type.
static String getRepresentation(Type candidateSolution)
          Get the representation of the type in the form expressed by the domain notation.
static boolean isInsideBounds(Type candidateSolution)
          Determine if the current type instance is within the defined bounds of the domain.
static void reset(Type type)
          Reset the current Resetable instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInsideBounds

public static boolean isInsideBounds(Type candidateSolution)
Determine if the current type instance is within the defined bounds of the domain.

Parameters:
candidateSolution -
Returns:
true if it is in the bounds, false otherwise.

getRepresentation

public static String getRepresentation(Type candidateSolution)
Get the representation of the type in the form expressed by the domain notation.

Examples:

Parameters:
candidateSolution - The type to represent.
Returns:
A String representing the Type in domain notation.

getDimension

public static int getDimension(Type value)
Get the dimension of the provided Type. If the provided type is a StructuredType, the size returned will

Parameters:
value - The type to determine the dimension of.
Returns:
The dimensionality of the provided type.

reset

public static void reset(Type type)
Reset the current Resetable instance.

Parameters:
type - The type to reset
Throws:
UnsupportedOperationException - if the provided type is not Resetable.
See Also:
Resetable


Copyright © 2009 CIRG. All Rights Reserved.