edu.columbia.surge
Interface FDRefFactory

All Known Implementing Classes:
FDRefFactoryH

public abstract interface FDRefFactory

This class holds the factory methods for the FDRef class. Users can use this class to create instances of FDRef objects with their desired parameters.

See Also:
FDRef

Field Summary
static FDRefFactory factory
          The static instance which helps users to access to the methods in this class.
 
Method Summary
 FDRef create(java.lang.Object ref)
          A factory method which creates an instance of FDRef with the given object to be referrenced to as the hole.
 

Field Detail

factory

public static final FDRefFactory factory
The static instance which helps users to access to the methods in this class.
Method Detail

create

public FDRef create(java.lang.Object ref)
A factory method which creates an instance of FDRef with the given object to be referrenced to as the hole.
Parameters:
ref - the hole of the FD, it is either a FD or a FDNull object.
Returns:
a default instance of FD