All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.mif.MIFInstance

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

public class MIFInstance
extends MIFValue

Constructor Index

 o MIFInstance(MIFConcept)
Constructs a MIFInstance with the type set to the specified concept.
 o MIFInstance(MIFConcept, Object[])
Constructs a MIFInstance with the type set to the specified concept and sets the specified attributes.
 o MIFInstance(MIFType)
Constructs a MIFInstance with the specified type.
 o MIFInstance(MIFType, Object[])
Constructs a MIFInstance with the specified type and sets the specified attributes.
 o MIFInstance(String)
Constructs a MIFInstance with the type set to the specified concept.
 o MIFInstance(String, Object[])

Method Index

 o clearAttribute(String)
 o clone()
 o getAttribute(String)
 o getComplexity()
 o getConcept()
 o getType()
 o intersect(MIFValue)
 o matches(MIFValue)
 o parseNode(ASTSNode)
 o setAttribute(Object[])
 o setAttribute(String, float)
 o setAttribute(String, int)
 o setAttribute(String, MIFValue)
 o setAttribute(String, String)
 o toString()
 o typeCheck(MIFType)

Constructors

 o MIFInstance
 public MIFInstance(MIFType mtype)
Constructs a MIFInstance with the specified type. The type must be representing a MIF instance.

Parameters:
mtype - the specified type.
Throws: MIFTypeException
if a type error occurs
 o MIFInstance
 public MIFInstance(MIFConcept concept)
Constructs a MIFInstance with the type set to the specified concept.

Parameters:
concept - the specified MIF concept
Throws: MIFTypeException
if a type error occurs
 o MIFInstance
 public MIFInstance(String conceptRef)
Constructs a MIFInstance with the type set to the specified concept.

Parameters:
conceptRef - A URL string referering to the specified concept.
Throws: MIFTypeException
if a type error occurs or the specified concept can not be fetched.
 o MIFInstance
 public MIFInstance(MIFType mtype,
                    Object attributes[])
Constructs a MIFInstance with the specified type and sets the specified attributes. The type must be representing a MIF instance.

The attributes are specified as an array with the form {name,value,name,value,...}.

Parameters:
mtype - the specified type.
attributes - an array with the specified attributes
Throws: MIFTypeException
if a type error occurs
 o MIFInstance
 public MIFInstance(MIFConcept concept,
                    Object attributes[])
Constructs a MIFInstance with the type set to the specified concept and sets the specified attributes.

The attributes are specified as an array with the form {name,value,name,value,...}.

Parameters:
concept - the specified MIF concept
attributes - an array with the specified attributes
Throws: MIFTypeException
if a type error occurs
 o MIFInstance
 public MIFInstance(String conceptRef,
                    Object attributes[])
Throws: MIFTypeException
if a type error occurs

Methods

 o getType
 public int getType()
Overrides:
getType in class MIFValue
 o typeCheck
 public boolean typeCheck(MIFType type)
Overrides:
typeCheck in class MIFValue
 o setAttribute
 public void setAttribute(String name,
                          MIFValue value)
Throws: MIFTypeException
if a type error occurs
 o setAttribute
 public void setAttribute(String name,
                          int value)
Throws: MIFTypeException
if a type error occurs
 o setAttribute
 public void setAttribute(String name,
                          float value)
Throws: MIFTypeException
if a type error occurs
 o setAttribute
 public void setAttribute(String name,
                          String value)
Throws: MIFTypeException
if a type error occurs
 o setAttribute
 public void setAttribute(Object attributes[])
Throws: MIFTypeException
if a type error occurs
 o getAttribute
 public MIFValue getAttribute(String name)
 o clearAttribute
 public void clearAttribute(String name)
 o getConcept
 public MIFConcept getConcept()
 o getComplexity
 public int getComplexity()
Overrides:
getComplexity in class MIFValue
 o parseNode
 public void parseNode(ASTSNode node) throws IOException
Throws: IOException
if an I/O or parse error occurs during parsing.
Overrides:
parseNode in class MIFValue
 o intersect
 public MIFValue intersect(MIFValue v)
Throws: MIFTypeException
if a type error occurs
Overrides:
intersect in class MIFValue
 o matches
 public boolean matches(MIFValue v)
Overrides:
matches in class MIFValue
 o toString
 public String toString()
Overrides:
toString in class Object
 o clone
 public synchronized Object clone() throws CloneNotSupportedException
Throws: CloneNotSupportedException
if an attribute value does not support cloning.
Overrides:
clone in class MIFValue

All Packages  Class Hierarchy  This Package  Previous  Next  Index