com.sun.electric.tool.user.ncc
Class ExportConflict.NetworkConflict

java.lang.Object
  extended by com.sun.electric.tool.user.ncc.ExportConflict
      extended by com.sun.electric.tool.user.ncc.ExportConflict.NetworkConflict
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ExportConflict

public static class ExportConflict.NetworkConflict
extends ExportConflict

This class is a container for an Export/Global Network Conflict. A local Network has the same name as a global Network, which creates a conflict.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.electric.tool.user.ncc.ExportConflict
ExportConflict.CharactConflict, ExportConflict.NetworkConflict
 
Field Summary
 
Fields inherited from class com.sun.electric.tool.user.ncc.ExportConflict
cell, context, name
 
Constructor Summary
ExportConflict.NetworkConflict(Cell cel, VarContext con, java.lang.String nm, Network lNet, Network gNet)
           
 
Method Summary
protected  java.lang.String getDescription(int col)
          Get text which should be printed as a hyperlink to a conflicting Network.
 Network getGlobalNetwork()
          Get the global conflicting Network
 Network getLocalNetwork()
          Get the local conflicting Network
 Network getNetwork(int col)
          Get conflicting Network.
 
Methods inherited from class com.sun.electric.tool.user.ncc.ExportConflict
getCell, getContext, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportConflict.NetworkConflict

public ExportConflict.NetworkConflict(Cell cel,
                                      VarContext con,
                                      java.lang.String nm,
                                      Network lNet,
                                      Network gNet)
Method Detail

getDescription

protected java.lang.String getDescription(int col)
Get text which should be printed as a hyperlink to a conflicting Network. This text id a list of Network names surrounded by curly brackets {} Column 0 corresponds to the local Network, 1 - to the global one.

Specified by:
getDescription in class ExportConflict
Parameters:
col - table column If column is not 0 or 1, then null is returned
Returns:
text to print as a hyperlink to conflicting Networks/Exports

getNetwork

public Network getNetwork(int col)
Get conflicting Network. Column 0 corresponds to the local Network, 1 - to the global one.

Parameters:
col - table column If column is not 0 or 1, then null is returned
Returns:
conflicting Network for the given table column

getLocalNetwork

public Network getLocalNetwork()
Get the local conflicting Network

Returns:
the local conflicting Network

getGlobalNetwork

public Network getGlobalNetwork()
Get the global conflicting Network

Returns:
the global conflicting Network