|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.parser.LayerFunction
public class LayerFunction
This layer function layers a set of rules of a given graph grammar.
Field Summary | |
---|---|
protected java.util.Hashtable<Type,java.lang.Integer> |
creationLayer
Deprecated. |
protected java.util.Hashtable<Type,java.lang.Integer> |
deletionLayer
Deprecated. |
protected java.lang.String |
errMsg
Deprecated. The error message if this layer function is not valid. |
protected GraGra |
grammar
Deprecated. The graph grammar. |
protected java.lang.String |
option
Deprecated. |
protected java.util.Hashtable<Rule,java.lang.Integer> |
ruleLayer
Deprecated. |
protected boolean |
valid
Deprecated. true if this layer function is valid. |
Constructor Summary | |
---|---|
LayerFunction(GraGra gragra)
Deprecated. Creates a new layer function for a given graph grammar. |
Method Summary | |
---|---|
boolean |
checkLayer()
Deprecated. Checks the layer function. |
java.util.Hashtable<Type,java.lang.Integer> |
getCreationLayer()
Deprecated. Returns the creation layer of the layer function. |
java.util.Hashtable<Type,java.lang.Integer> |
getDeletionLayer()
Deprecated. Returns the deletion layer of the layer function. |
java.lang.String |
getErrorMessage()
Deprecated. Returns an error message if the layer function is not valid. |
java.lang.String |
getOption()
Deprecated. Returns layer option. |
java.util.Hashtable<Rule,java.lang.Integer> |
getRuleLayer()
Deprecated. Returns the rule layer of the layer function. |
java.lang.Integer |
getStartLayer()
Deprecated. Returns the smallest layer of the rule layer. |
java.util.Hashtable<java.lang.Integer,com.objectspace.jgl.HashSet> |
invertLayer(java.util.Hashtable<?,?> layer)
Deprecated. Inverts a layer function so that the layer is the key and the value is a set. |
boolean |
isValid()
Deprecated. A fast check on validity. |
java.lang.String |
toString()
Deprecated. Returns the layer function in a human readable way. |
protected void |
writeHashtableToXML(java.util.Hashtable<?,?> xmlObjects,
XMLHelper h)
Deprecated. Writes a hashtable to a xml file. |
void |
XreadObject(XMLHelper h)
Deprecated. Reads the contents of a xml file. |
void |
XwriteObject(XMLHelper h)
Deprecated. Writes the layer function to a file in a xml format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GraGra grammar
protected java.util.Hashtable<Rule,java.lang.Integer> ruleLayer
protected java.util.Hashtable<Type,java.lang.Integer> creationLayer
protected java.util.Hashtable<Type,java.lang.Integer> deletionLayer
protected java.lang.String errMsg
protected boolean valid
protected java.lang.String option
Constructor Detail |
---|
public LayerFunction(GraGra gragra)
gragra
- The graph grammar.Method Detail |
---|
public boolean checkLayer()
public boolean isValid()
public java.lang.String getErrorMessage()
public java.util.Hashtable<Rule,java.lang.Integer> getRuleLayer()
public java.util.Hashtable<Type,java.lang.Integer> getCreationLayer()
public java.util.Hashtable<Type,java.lang.Integer> getDeletionLayer()
public java.lang.Integer getStartLayer()
public java.util.Hashtable<java.lang.Integer,com.objectspace.jgl.HashSet> invertLayer(java.util.Hashtable<?,?> layer)
layer
- The layer function will be inverted.
public java.lang.String getOption()
protected void writeHashtableToXML(java.util.Hashtable<?,?> xmlObjects, XMLHelper h)
xmlObjects
- this
h
- A helper object.public void XwriteObject(XMLHelper h)
XwriteObject
in interface XMLObject
h
- A helper object for storing.public void XreadObject(XMLHelper h)
XreadObject
in interface XMLObject
h
- A helper object.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |