All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.mif.MIFInterval

java.lang.Object
   |
   +----sics.agentbase.mif.MIFValue
           |
           +----sics.agentbase.mif.MIFInterval

public class MIFInterval
extends MIFValue
MIFInterval only support primitive numeric types as Integer, Float or Date. It is therefor not possible to nest intervals (the following is for example forbidden: (interval 3 (interval 4 8))) Intervals are not permitted as value for 'oneof' types


Constructor Index

 o MIFInterval(float, float)
 o MIFInterval(int, int)
 o MIFInterval(MIFType)
 o MIFInterval(MIFType, float, float)
 o MIFInterval(MIFType, int, int)

Method Index

 o clone()
 o getComplexity()
 o getLower()
 o getLowerAsFloat()
 o getLowerAsInt()
 o getType()
 o getUpper()
 o getUpperAsFloat()
 o getUpperAsInt()
 o intersect(MIFValue)
 o matches(MIFValue)
 o parseNode(ASTSNode)
 o setLower(float)
 o setLower(int)
 o setLower(String)
 o setUpper(float)
 o setUpper(int)
 o setUpper(String)
 o toString()
 o typeCheck(float)
 o typeCheck(int)
 o typeCheck(MIFType)
 o typeCheck(String)

Constructors

 o MIFInterval
 public MIFInterval(MIFType mtype)
 o MIFInterval
 public MIFInterval(int low,
                    int high)
 o MIFInterval
 public MIFInterval(float low,
                    float high)
 o MIFInterval
 public MIFInterval(MIFType mtype,
                    int low,
                    int high)
 o MIFInterval
 public MIFInterval(MIFType mtype,
                    float low,
                    float high)

Methods

 o getComplexity
 public int getComplexity()
Overrides:
getComplexity in class MIFValue
 o getType
 public int getType()
Overrides:
getType in class MIFValue
 o setUpper
 public void setUpper(int v)
 o setUpper
 public void setUpper(float v)
 o setUpper
 public void setUpper(String s)
 o setLower
 public void setLower(int v)
 o setLower
 public void setLower(float v)
 o setLower
 public void setLower(String s)
 o getUpper
 public MIFNumeric getUpper()
 o getLower
 public MIFNumeric getLower()
 o getUpperAsInt
 public int getUpperAsInt()
 o getUpperAsFloat
 public float getUpperAsFloat()
 o getLowerAsInt
 public int getLowerAsInt()
 o getLowerAsFloat
 public float getLowerAsFloat()
 o typeCheck
 public boolean typeCheck(int v)
Overrides:
typeCheck in class MIFValue
 o typeCheck
 public boolean typeCheck(float v)
Overrides:
typeCheck in class MIFValue
 o typeCheck
 public boolean typeCheck(String s)
Overrides:
typeCheck in class MIFValue
 o typeCheck
 public boolean typeCheck(MIFType mtype)
Overrides:
typeCheck in class MIFValue
 o parseNode
 public void parseNode(ASTSNode node) throws IOException
Overrides:
parseNode in class MIFValue
 o intersect
 public MIFValue intersect(MIFValue v)
Overrides:
intersect in class MIFValue
 o matches
 public boolean matches(MIFValue v)
Overrides:
matches in class MIFValue
 o clone
 public synchronized Object clone() throws CloneNotSupportedException
Overrides:
clone in class MIFValue
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index