com.sun.electric.tool.user.ncc
Class NccGuiInfo

java.lang.Object
  extended by com.sun.electric.tool.user.ncc.NccGuiInfo
All Implemented Interfaces:
java.io.Serializable

public class NccGuiInfo
extends java.lang.Object
implements java.io.Serializable

This class is a container for all NCC mismatch data produced by a comparison of two cells. This data is required by NCC GUI.

See Also:
Serialized Form

Constructor Summary
NccGuiInfo()
           
 
Method Summary
 void addCharactExportConflict(ExportConflict.CharactConflict conf)
           
 void addExportAssertionFailure(Cell cell, VarContext context, java.lang.Object[][] items, java.lang.String[][] names)
           
 void addExportMismatch(ExportMismatch em)
          This method adds the provided ExportMismatch object to the list of export mismatches
 void addNetworkExportConflict(ExportConflict.NetworkConflict conf)
           
 void addUnrecognizedPart(UnrecognizedPart mos)
           
 Cell[] getCells()
          This method returns an array of two compared cells
 NccResult.CellSummary getCellSummary()
          This method returns a CellSummary object holding number of parts, wires, and ports in each cell.
 java.util.List<ExportConflict.CharactConflict> getCharactExportConflicts()
           
 VarContext[] getContexts()
          This method returns an array of two cell contexts
 java.util.List<ExportAssertionFailures> getExportAssertionFailures()
           
 java.util.List<ExportMismatch> getExportMismatches()
          This method returns the list of export mismatches
 java.lang.String[] getNames()
          This method returns an array of two Strings representing the names of the compared cells
 java.util.List<ExportConflict.NetworkConflict> getNetworkExportConflicts()
           
 java.util.List<EquivRecReport> getPartRecReports()
           
 java.util.List<SizeMismatch.Mismatch> getSizeMismatches()
           
 int getTotalMismatchCount()
          This method returns the total number of valid mismatches stored in the object: export mismatches + size mismatches + local partitioning mismatches (or hascode mismaches)
 java.util.List<UnrecognizedPart> getUnrecognizedParts()
           
 int getValidExportMismatchCount()
           
 java.util.List<EquivRecReport> getWireRecReports()
           
 boolean hasLocalPartitionMismatches()
           
 boolean isExportMatch()
           
 boolean isHashFailuresPrinted()
          has hash coding mismatches
 boolean isSizeChecked()
           
 boolean isSizeMatch()
           
 boolean isSwapCells()
          This method returns true if two cells stored in this object were swapped and, therefore, all internal data (exports, partitions, sizes) have to be swapped as well
 boolean isTopologyMatch()
           
 void setNccResult(NccResult r)
          setNccResult should be called after NCC has returned a result
 void setPartRecReports(java.util.List<EquivRecReport> badParts)
           
 void setSizeMismatches(java.util.List<SizeMismatch.Mismatch> sizeMismatches)
           
 void setWireRecReports(java.util.List<EquivRecReport> badWires)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NccGuiInfo

public NccGuiInfo()
Method Detail

setNccResult

public void setNccResult(NccResult r)
setNccResult should be called after NCC has returned a result


getTotalMismatchCount

public int getTotalMismatchCount()
This method returns the total number of valid mismatches stored in the object: export mismatches + size mismatches + local partitioning mismatches (or hascode mismaches)

Returns:
the total number of valid mismatches stored in the object

isSwapCells

public boolean isSwapCells()
This method returns true if two cells stored in this object were swapped and, therefore, all internal data (exports, partitions, sizes) have to be swapped as well

Returns:
true if two cells stored in this object were swapped

getNames

public java.lang.String[] getNames()
This method returns an array of two Strings representing the names of the compared cells

Returns:
an array of cell names

getCells

public Cell[] getCells()
This method returns an array of two compared cells

Returns:
an array of cell

getContexts

public VarContext[] getContexts()
This method returns an array of two cell contexts

Returns:
an array cell contexts

getCellSummary

public NccResult.CellSummary getCellSummary()
This method returns a CellSummary object holding number of parts, wires, and ports in each cell.

Returns:
a CellSummary with summary of the compared cells

addExportMismatch

public void addExportMismatch(ExportMismatch em)
This method adds the provided ExportMismatch object to the list of export mismatches

Parameters:
em - export mismatch to add to the list of export mismatches

getExportMismatches

public java.util.List<ExportMismatch> getExportMismatches()
This method returns the list of export mismatches

Returns:
list of export mismatches

setPartRecReports

public void setPartRecReports(java.util.List<EquivRecReport> badParts)

getPartRecReports

public java.util.List<EquivRecReport> getPartRecReports()

setWireRecReports

public void setWireRecReports(java.util.List<EquivRecReport> badWires)

getWireRecReports

public java.util.List<EquivRecReport> getWireRecReports()

isHashFailuresPrinted

public boolean isHashFailuresPrinted()
has hash coding mismatches


hasLocalPartitionMismatches

public boolean hasLocalPartitionMismatches()

isExportMatch

public boolean isExportMatch()

isSizeMatch

public boolean isSizeMatch()

isTopologyMatch

public boolean isTopologyMatch()

isSizeChecked

public boolean isSizeChecked()

getValidExportMismatchCount

public int getValidExportMismatchCount()

getSizeMismatches

public java.util.List<SizeMismatch.Mismatch> getSizeMismatches()

setSizeMismatches

public void setSizeMismatches(java.util.List<SizeMismatch.Mismatch> sizeMismatches)

addExportAssertionFailure

public void addExportAssertionFailure(Cell cell,
                                      VarContext context,
                                      java.lang.Object[][] items,
                                      java.lang.String[][] names)

getExportAssertionFailures

public java.util.List<ExportAssertionFailures> getExportAssertionFailures()

addNetworkExportConflict

public void addNetworkExportConflict(ExportConflict.NetworkConflict conf)

getNetworkExportConflicts

public java.util.List<ExportConflict.NetworkConflict> getNetworkExportConflicts()

addCharactExportConflict

public void addCharactExportConflict(ExportConflict.CharactConflict conf)

getCharactExportConflicts

public java.util.List<ExportConflict.CharactConflict> getCharactExportConflicts()

addUnrecognizedPart

public void addUnrecognizedPart(UnrecognizedPart mos)

getUnrecognizedParts

public java.util.List<UnrecognizedPart> getUnrecognizedParts()