All Packages Class Hierarchy This Package Previous Next Index
Class sics.agentbase.mif.MIFValue
java.lang.Object
|
+----sics.agentbase.mif.MIFValue
- public abstract class MIFValue
- extends Object
- implements Cloneable, Serializable
-
MIFValue()
-
-
clone()
-
-
getBasicType()
-
-
getComplexity()
-
-
getType()
-
-
intersect(MIFValue)
- Basic intersection between simple types (must be overridden in
more complex types)
-
matches(MIFValue)
- Basic match between simple types (must be overridden in
more complex types)
-
readValue(InputStream)
-
-
readValue(MIFType, InputStream)
-
-
setValue(float)
-
-
setValue(int)
-
-
setValue(String)
-
-
stringValue()
-
-
typeCheck(float)
-
-
typeCheck(int)
-
-
typeCheck(MIFType)
- Returns true if this MIFValue fulfills the constraints of the
specified type and false otherwise.
-
typeCheck(MIFValue)
-
-
typeCheck(String)
-
MIFValue
public MIFValue()
getComplexity
public abstract int getComplexity()
getType
public abstract int getType()
getBasicType
public int getBasicType()
setValue
public void setValue(String s)
setValue
public void setValue(int v)
setValue
public void setValue(float v)
stringValue
public String stringValue()
typeCheck
public boolean typeCheck(int v)
typeCheck
public boolean typeCheck(float v)
typeCheck
public boolean typeCheck(String s)
typeCheck
public boolean typeCheck(MIFValue v)
typeCheck
public abstract boolean typeCheck(MIFType type)
- Returns true if this MIFValue fulfills the constraints of the
specified type and false otherwise.
- Parameters:
- type - The specified type.
- Returns:
- true if this MIFValue fulfills the specified type and false
otherwise.
readValue
public static MIFValue readValue(InputStream in) throws IOException
readValue
public static MIFValue readValue(MIFType mtype,
InputStream in) throws IOException
intersect
public MIFValue intersect(MIFValue v)
- Basic intersection between simple types (must be overridden in
more complex types)
matches
public boolean matches(MIFValue v)
- Basic match between simple types (must be overridden in
more complex types)
clone
public synchronized Object clone() throws CloneNotSupportedException
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index