Package ec.gp

Class GPAtomicType

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

public final class GPAtomicType extends GPType
A GPAtomicType is a simple, atomic GPType. For more information, see GPType.
See Also:
  • Constructor Details

    • GPAtomicType

      public GPAtomicType(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 Details

    • 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