edu.ucla.belief
Class VariableImpl

Object
  extended by VariableImpl
All Implemented Interfaces:
Variable, Cloneable, Comparable
Direct Known Subclasses:
FiniteVariableImpl

public abstract class VariableImpl
extends Object
implements Variable

Since:
093002
Author:
Keith Cascio

Field Summary
 String id
           
static int INT_NUM_PROPERTIES
           
static Comparator theCollator
           
 Object userobject
           
 
Constructor Summary
VariableImpl(String id)
           
VariableImpl(Variable toCopy)
           
 
Method Summary
abstract  Object clone()
           
 int compareTo(Object obj)
           
 void delete(EnumProperty property)
           
static EnumProperty forID(String propID)
           
 Map getEnumProperties()
           
 String getID()
           
static int getNumProperties()
           
 EnumValue getProperty(EnumProperty property)
           
static VariableStringifier getStringifier()
           
 Object getUserObject()
           
static int index(EnumProperty property)
           
static void initProperties()
           
static boolean isStringifier()
           
static void propertiesArrayCopy(EnumProperty[] into)
           
 void setID(String id)
           
 void setProperty(EnumProperty property, EnumValue value)
           
static void setStringifier(VariableStringifier vs)
           
 void setUserObject(Object obj)
           
static boolean validatePropertyNameAndID(Object name, Object id)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Variable
instance
 

Field Detail

INT_NUM_PROPERTIES

public static final int INT_NUM_PROPERTIES
See Also:
Constant Field Values

theCollator

public static final Comparator theCollator

id

public String id

userobject

public Object userobject
Constructor Detail

VariableImpl

public VariableImpl(String id)

VariableImpl

public VariableImpl(Variable toCopy)
Method Detail

initProperties

public static final void initProperties()
Since:
091504

getNumProperties

public static int getNumProperties()
Since:
091404

propertiesArrayCopy

public static void propertiesArrayCopy(EnumProperty[] into)
Since:
091404

clone

public abstract Object clone()
Specified by:
clone in interface Variable
Overrides:
clone in class Object

getProperty

public EnumValue getProperty(EnumProperty property)
Specified by:
getProperty in interface Variable
Since:
082003

getEnumProperties

public Map getEnumProperties()
Specified by:
getEnumProperties in interface Variable

setProperty

public void setProperty(EnumProperty property,
                        EnumValue value)
Specified by:
setProperty in interface Variable

delete

public void delete(EnumProperty property)
Specified by:
delete in interface Variable

getID

public String getID()
Specified by:
getID in interface Variable

setID

public void setID(String id)
Specified by:
setID in interface Variable

getUserObject

public Object getUserObject()
Specified by:
getUserObject in interface Variable

setUserObject

public void setUserObject(Object obj)
Specified by:
setUserObject in interface Variable

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

index

public static final int index(EnumProperty property)

validatePropertyNameAndID

public static final boolean validatePropertyNameAndID(Object name,
                                                      Object id)

forID

public static final EnumProperty forID(String propID)

setStringifier

public static final void setStringifier(VariableStringifier vs)
Since:
052104

getStringifier

public static final VariableStringifier getStringifier()
Since:
052104

isStringifier

public static final boolean isStringifier()
Since:
052104


Copyright 2010 UCLA Automated Reasoning Group