net.sourceforge.cilib.type.creator
Class B

java.lang.Object
  extended by net.sourceforge.cilib.type.creator.B
All Implemented Interfaces:
TypeCreator

public final class B
extends Object
implements TypeCreator

Author:
Gary Pampara

Constructor Summary
B()
           
 
Method Summary
 Type create()
          Create the type in a standard fashion.
 Type create(double value)
          Create the type with the specified value.
 Type create(double lower, double upper)
          Create the type using the bounds lower and upper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

B

public B()
Method Detail

create

public Type create()
Create the type in a standard fashion. If the type has the concept of bounds, the maximum and minimum values for the bounds are used to bound the created object.

Specified by:
create in interface TypeCreator
Returns:
The newly created Type

create

public Type create(double value)
Create the type with the specified value.

Specified by:
create in interface TypeCreator
Parameters:
value - The value for the Type.
Returns:
The created Type with the provided value.

create

public Type create(double lower,
                   double upper)
Create the type using the bounds lower and upper.

Specified by:
create in interface TypeCreator
Parameters:
lower - The lower bound for the Type.
upper - The upper bound for the Type.
Returns:
The newly created Type object using the specified bounds


Copyright © 2009 CIRG. All Rights Reserved.