edu.byu.ece.edif.tools.flatten
Class UniqueHierarchyNet

java.lang.Object
  extended by edu.byu.ece.edif.tools.flatten.UniqueHierarchyNet
All Implemented Interfaces:
HierarchicalNet, java.io.Serializable

public class UniqueHierarchyNet
extends java.lang.Object
implements HierarchicalNet

A basic implementation of the HierarchicalNet interface.

See Also:
Serialized Form

Field Summary
private  java.lang.String _originalNetName
          A reference to the original EdifNet
private  HierarchicalInstance _parent
          A reference to the parent HierarchicalInstance
 
Constructor Summary
UniqueHierarchyNet(HierarchicalInstance parent, EdifNet originalNet)
          Construct a new UniqueHierarchyNet based on the given original EdifNet and with the given parent HierarchicalInstance
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getOriginalNetName()
           
 HierarchicalInstance getParent()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_originalNetName

private java.lang.String _originalNetName
A reference to the original EdifNet


_parent

private HierarchicalInstance _parent
A reference to the parent HierarchicalInstance

Constructor Detail

UniqueHierarchyNet

public UniqueHierarchyNet(HierarchicalInstance parent,
                          EdifNet originalNet)
Construct a new UniqueHierarchyNet based on the given original EdifNet and with the given parent HierarchicalInstance

Parameters:
parent - the parent HierarchicalInstance of the net
originalNet - the original EdifNet
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Returns:
a boolean representing the equality of another object with this UniqueHierarchyNet. Equality is checked via the == operator on both the parent HierarchicalInstance and the original EdifNet

getOriginalNetName

public java.lang.String getOriginalNetName()
Specified by:
getOriginalNetName in interface HierarchicalNet
Returns:
a reference to the original EdifNet

getParent

public HierarchicalInstance getParent()
Specified by:
getParent in interface HierarchicalNet
Returns:
a reference to the parent HierarchicalInstance