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
-
MIFInstance(MIFConcept)
- Constructs a MIFInstance with the type set to the specified concept.
-
MIFInstance(MIFConcept, Object[])
- Constructs a MIFInstance with the type set to the specified concept
and sets the specified attributes.
-
MIFInstance(MIFType)
- Constructs a MIFInstance with the specified type.
-
MIFInstance(MIFType, Object[])
- Constructs a MIFInstance with the specified type and sets the specified
attributes.
-
MIFInstance(String)
- Constructs a MIFInstance with the type set to the specified concept.
-
MIFInstance(String, Object[])
-
-
clearAttribute(String)
-
-
clone()
-
-
getAttribute(String)
-
-
getComplexity()
-
-
getConcept()
-
-
getType()
-
-
intersect(MIFValue)
-
-
matches(MIFValue)
-
-
parseNode(ASTSNode)
-
-
setAttribute(Object[])
-
-
setAttribute(String, float)
-
-
setAttribute(String, int)
-
-
setAttribute(String, MIFValue)
-
-
setAttribute(String, String)
-
-
toString()
-
-
typeCheck(MIFType)
-
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
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
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.
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
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
MIFInstance
public MIFInstance(String conceptRef,
Object attributes[])
- Throws: MIFTypeException
- if a type error occurs
getType
public int getType()
- Overrides:
- getType in class MIFValue
typeCheck
public boolean typeCheck(MIFType type)
- Overrides:
- typeCheck in class MIFValue
setAttribute
public void setAttribute(String name,
MIFValue value)
- Throws: MIFTypeException
- if a type error occurs
setAttribute
public void setAttribute(String name,
int value)
- Throws: MIFTypeException
- if a type error occurs
setAttribute
public void setAttribute(String name,
float value)
- Throws: MIFTypeException
- if a type error occurs
setAttribute
public void setAttribute(String name,
String value)
- Throws: MIFTypeException
- if a type error occurs
setAttribute
public void setAttribute(Object attributes[])
- Throws: MIFTypeException
- if a type error occurs
getAttribute
public MIFValue getAttribute(String name)
clearAttribute
public void clearAttribute(String name)
getConcept
public MIFConcept getConcept()
getComplexity
public int getComplexity()
- Overrides:
- getComplexity in class MIFValue
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
intersect
public MIFValue intersect(MIFValue v)
- Throws: MIFTypeException
- if a type error occurs
- Overrides:
- intersect in class MIFValue
matches
public boolean matches(MIFValue v)
- Overrides:
- matches in class MIFValue
toString
public String toString()
- Overrides:
- toString in class Object
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