ec.gp
Class GPAtomicType

java.lang.Object
  extended by ec.gp.GPType
      extended by ec.gp.GPAtomicType
All Implemented Interfaces:
Clique, Setup, java.io.Serializable

public final class GPAtomicType
extends GPType

A GPAtomicType is a simple, atomic GPType. For more information, see GPType.

Version:
1.0
Author:
Sean Luke
See Also:
GPType, Serialized Form

Field Summary
 
Fields inherited from class ec.gp.GPType
name, P_NAME, type
 
Constructor Summary
GPAtomicType()
          Don't use this constructor unless you call setup(...) immediately after it.
GPAtomicType(java.lang.String n)
          Use this constructor for GPAtomic Type unless you know what you're doing
 
Method Summary
 boolean compatibleWith(GPInitializer initializer, GPType t)
          Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality.
 
Methods inherited from class ec.gp.GPType
setup, toString, typeFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPAtomicType

public GPAtomicType(java.lang.String n)
Use this constructor for GPAtomic Type unless you know what you're doing


GPAtomicType

public GPAtomicType()
Don't use this constructor unless you call setup(...) immediately after it.

Method Detail

compatibleWith

public final boolean compatibleWith(GPInitializer initializer,
                                    GPType t)
Description copied from class: GPType
Am I compatible with ("fit" with) t? For two atomic types, this is done by direct pointer equality. For two set types, this is done by determining if the intersection is nonempty. A set type is compatible with an atomic type if it contains the atomic type in its set.

Specified by:
compatibleWith in class GPType