All Packages Class Hierarchy This Package Previous Next Index
Class sics.agentbase.mif.MIFNumeric
java.lang.Object
|
+----sics.agentbase.mif.MIFValue
|
+----sics.agentbase.mif.MIFNumeric
- public abstract class MIFNumeric
- extends MIFValue
MIFNumeric is built upon that numeric values can be accessed as a float
to enable comparison. The float value must be generated in such way that
if MIFNumeric A is larger than B, the float value A generates must be
larger than the float value B generates. Further should the generated
float values from A and B be equal if A and B contains the same numeric
value.
-
INF
-
-
NUMERIC
-
-
SUP
-
-
MIFNumeric()
-
-
equals(Object)
-
-
floatValue()
-
-
getComplexity()
-
-
getNumericType()
-
-
intValue()
-
-
parseNode(ASTSNode)
-
-
stringValue()
-
-
typeCheck(int)
-
-
typeCheck(MIFType)
-
-
typeCheck(String)
-
NUMERIC
public static final int NUMERIC
SUP
public static final int SUP
INF
public static final int INF
MIFNumeric
public MIFNumeric()
getComplexity
public int getComplexity()
- Overrides:
- getComplexity in class MIFValue
getNumericType
public int getNumericType()
typeCheck
public boolean typeCheck(MIFType mtype)
- Overrides:
- typeCheck in class MIFValue
typeCheck
public boolean typeCheck(int v)
- Overrides:
- typeCheck in class MIFValue
typeCheck
public boolean typeCheck(String s)
- Overrides:
- typeCheck in class MIFValue
floatValue
public abstract float floatValue()
intValue
public abstract int intValue()
stringValue
public abstract String stringValue()
- Overrides:
- stringValue in class MIFValue
parseNode
public void parseNode(ASTSNode node) throws IOException
- Overrides:
- parseNode in class MIFValue
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index