|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunsw.cse.mica.data.RemoteTypeManager
public class RemoteTypeManager
Field Summary |
---|
Fields inherited from interface unsw.cse.mica.data.TypeManager |
---|
TYPE_MOB |
Constructor Summary | |
---|---|
RemoteTypeManager()
|
Method Summary | |
---|---|
java.util.Set |
getAllTypeNames()
Get a set containing the names of all the known types in this type manager |
java.util.Set |
getAncestors(java.lang.String typeName)
Get a set containing the names of all ancestors of the given type. |
java.util.Set |
getChildren(java.lang.String typeName)
Get a set containing the names of all children (immediate descendants) of the given type. |
java.util.Set |
getDescendants(java.lang.String typeName)
Get a set containing the names of all descendants of the given type. |
java.util.Set |
getParents(java.lang.String typeName)
Get a set containing the names of all parents (immediate ancestors) of the given type. |
java.lang.String |
getPersistence(java.lang.String typeName)
Get the default persistence mode for this type. |
boolean |
hasType(java.lang.String typeName)
Does the type manager know about the given type? |
boolean |
isATypeOf(Mob mob,
java.lang.String typeName)
Is the mob an instance of typeName? This is true if isATypeOf(mob.getType(), typeName) is true. |
boolean |
isATypeOf(java.lang.String typeName,
java.lang.String parentName)
Is one type a subtype of another? A type is a subtype of another if the types are the same or if is a descendant of it |
void |
setRemoteSource(AgentActions actions)
|
java.lang.String |
toXML(java.lang.String initIndent,
java.lang.String otherIndent)
Create an XML representation of the type manager |
void |
update()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteTypeManager()
Method Detail |
---|
public void setRemoteSource(AgentActions actions)
public void update() throws TransportException
TransportException
public boolean hasType(java.lang.String typeName)
TypeManager
hasType
in interface TypeManager
public java.lang.String getPersistence(java.lang.String typeName)
TypeManager
getPersistence
in interface TypeManager
null
if no default persistence is specified.public boolean isATypeOf(Mob mob, java.lang.String typeName)
TypeManager
isATypeOf(mob.getType(), typeName)
is true.
isATypeOf
in interface TypeManager
public boolean isATypeOf(java.lang.String typeName, java.lang.String parentName)
TypeManager
isATypeOf
in interface TypeManager
typeName
is a subtype of parentName
, false otherwisepublic java.util.Set getAllTypeNames()
TypeManager
getAllTypeNames
in interface TypeManager
public java.util.Set getParents(java.lang.String typeName)
TypeManager
getParents
in interface TypeManager
typeName
- the type for which the parents are requested
public java.util.Set getChildren(java.lang.String typeName)
TypeManager
getChildren
in interface TypeManager
typeName
- the type for which the children are requested
public java.util.Set getAncestors(java.lang.String typeName)
TypeManager
getAncestors
in interface TypeManager
typeName
- the type for which the ancestors are requested
public java.util.Set getDescendants(java.lang.String typeName)
TypeManager
getDescendants
in interface TypeManager
typeName
- the type for which the descendants are requested
public java.lang.String toXML(java.lang.String initIndent, java.lang.String otherIndent)
TypeManager
toXML
in interface TypeManager
initIndent
- the per-line indent for the entire XML string (which may be multi-line)otherIndent
- additioanl indentation for nested elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |