ua.gradsoft.termware
Class TypeConversion.TermToNumber

java.lang.Object
  extended by ua.gradsoft.termware.TypeConversion.TermToNumber
Enclosing class:
TypeConversion

public abstract static class TypeConversion.TermToNumber
extends Object


Constructor Summary
TypeConversion.TermToNumber()
           
 
Method Summary
abstract  Number convert(Term t, TermWareInstance instance)
          convert t to number
 int possible(Term t, TermWareInstance instance)
          must return one from POSSIBLE, NOT_POSSIBLE, MAYBE_POSSIBLE user can override this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConversion.TermToNumber

public TypeConversion.TermToNumber()
Method Detail

possible

public int possible(Term t,
                    TermWareInstance instance)
must return one from POSSIBLE, NOT_POSSIBLE, MAYBE_POSSIBLE user can override this method. default implementation return MAYBE_POSSIBLE


convert

public abstract Number convert(Term t,
                               TermWareInstance instance)
                        throws ConversionException
convert t to number

Throws:
ConversionException