agg.parser
Class LayerFunction

java.lang.Object
  extended by agg.parser.LayerFunction
All Implemented Interfaces:
XMLObject
Direct Known Subclasses:
ExtendedLayerFunction, WeakLayerFunction

Deprecated.

public class LayerFunction
extends java.lang.Object
implements XMLObject

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

grammar

protected GraGra grammar
Deprecated. 
The graph grammar.


ruleLayer

protected java.util.Hashtable<Rule,java.lang.Integer> ruleLayer
Deprecated. 

creationLayer

protected java.util.Hashtable<Type,java.lang.Integer> creationLayer
Deprecated. 

deletionLayer

protected java.util.Hashtable<Type,java.lang.Integer> deletionLayer
Deprecated. 

errMsg

protected java.lang.String errMsg
Deprecated. 
The error message if this layer function is not valid.


valid

protected boolean valid
Deprecated. 
true if this layer function is valid.


option

protected java.lang.String option
Deprecated. 
Constructor Detail

LayerFunction

public LayerFunction(GraGra gragra)
Deprecated. 
Creates a new layer function for a given graph grammar. Initially this layer function is invalid.

Parameters:
gragra - The graph grammar.
Method Detail

checkLayer

public boolean checkLayer()
Deprecated. 
Checks the layer function.

Returns:
true if the layer function is valid.

isValid

public boolean isValid()
Deprecated. 
A fast check on validity.

Returns:
true if the layer function is valid.

getErrorMessage

public java.lang.String getErrorMessage()
Deprecated. 
Returns an error message if the layer function is not valid.

Returns:
The error message.

getRuleLayer

public java.util.Hashtable<Rule,java.lang.Integer> getRuleLayer()
Deprecated. 
Returns the rule layer of the layer function.

Returns:
The rule layer.

getCreationLayer

public java.util.Hashtable<Type,java.lang.Integer> getCreationLayer()
Deprecated. 
Returns the creation layer of the layer function.

Returns:
The creation layer.

getDeletionLayer

public java.util.Hashtable<Type,java.lang.Integer> getDeletionLayer()
Deprecated. 
Returns the deletion layer of the layer function.

Returns:
The deletion layer.

getStartLayer

public java.lang.Integer getStartLayer()
Deprecated. 
Returns the smallest layer of the rule layer.

Returns:
The smallest layer.

invertLayer

public 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.

Parameters:
layer - The layer function will be inverted.
Returns:
The inverted layer function.

getOption

public java.lang.String getOption()
Deprecated. 
Returns layer option. The layer option will be initialized during loading of critical pairs file. This option can be used in the method setLayer(String l) of the LayerOption class.


writeHashtableToXML

protected void writeHashtableToXML(java.util.Hashtable<?,?> xmlObjects,
                                   XMLHelper h)
Deprecated. 
Writes a hashtable to a xml file.

Parameters:
xmlObjects - this
h - A helper object.

XwriteObject

public void XwriteObject(XMLHelper h)
Deprecated. 
Writes the layer function to a file in a xml format.

Specified by:
XwriteObject in interface XMLObject
Parameters:
h - A helper object for storing.

XreadObject

public void XreadObject(XMLHelper h)
Deprecated. 
Reads the contents of a xml file.

Specified by:
XreadObject in interface XMLObject
Parameters:
h - A helper object.

toString

public java.lang.String toString()
Deprecated. 
Returns the layer function in a human readable way.

Overrides:
toString in class java.lang.Object
Returns:
The text.