etomica.compatibility
Class Feature

java.lang.Object
  extended by etomica.compatibility.Feature
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NumericFeature, StringFeature

public abstract class Feature
extends Object
implements Serializable

Tentative property-based infrastructure for a general property-based compatibility algorithm

See Also:
Serialized Form

Field Summary
static int CONTAINS
           
static int GREATER_THAN
           
static int INCOMPATIBLE_TYPES
           
static int IS_EMPTY
           
static int IS_EQUAL
           
static int LESS_THAN
           
 String name
           
 
Constructor Summary
Feature(String aname)
           
 
Method Summary
abstract  int compareTo(Feature feat)
           
abstract  boolean compareTo(int operator, Feature feat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

IS_EQUAL

public static final int IS_EQUAL
See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
See Also:
Constant Field Values

IS_EMPTY

public static final int IS_EMPTY
See Also:
Constant Field Values

INCOMPATIBLE_TYPES

public static final int INCOMPATIBLE_TYPES
See Also:
Constant Field Values

CONTAINS

public static final int CONTAINS
See Also:
Constant Field Values

name

public String name
Constructor Detail

Feature

public Feature(String aname)
Method Detail

compareTo

public abstract int compareTo(Feature feat)

compareTo

public abstract boolean compareTo(int operator,
                                  Feature feat)