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

Constructor Index

 o MIFValue()

Method Index

 o clone()
 o getBasicType()
 o getComplexity()
 o getType()
 o intersect(MIFValue)
Basic intersection between simple types (must be overridden in more complex types)
 o matches(MIFValue)
Basic match between simple types (must be overridden in more complex types)
 o readValue(InputStream)
 o readValue(MIFType, InputStream)
 o setValue(float)
 o setValue(int)
 o setValue(String)
 o stringValue()
 o typeCheck(float)
 o typeCheck(int)
 o typeCheck(MIFType)
Returns true if this MIFValue fulfills the constraints of the specified type and false otherwise.
 o typeCheck(MIFValue)
 o typeCheck(String)

Constructors

 o MIFValue
 public MIFValue()

Methods

 o getComplexity
 public abstract int getComplexity()
 o getType
 public abstract int getType()
 o getBasicType
 public int getBasicType()
 o setValue
 public void setValue(String s)
 o setValue
 public void setValue(int v)
 o setValue
 public void setValue(float v)
 o stringValue
 public String stringValue()
 o typeCheck
 public boolean typeCheck(int v)
 o typeCheck
 public boolean typeCheck(float v)
 o typeCheck
 public boolean typeCheck(String s)
 o typeCheck
 public boolean typeCheck(MIFValue v)
 o 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.
 o readValue
 public static MIFValue readValue(InputStream in) throws IOException
 o readValue
 public static MIFValue readValue(MIFType mtype,
                                  InputStream in) throws IOException
 o intersect
 public MIFValue intersect(MIFValue v)
Basic intersection between simple types (must be overridden in more complex types)

 o matches
 public boolean matches(MIFValue v)
Basic match between simple types (must be overridden in more complex types)

 o clone
 public synchronized Object clone() throws CloneNotSupportedException
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index