com.sun.electric.database.id
Class IdWriter

java.lang.Object
  extended by com.sun.electric.database.id.IdWriter

public class IdWriter
extends java.lang.Object

Class to write trace of Snapshots to DataOutput byte sequence.


Field Summary
 IdManager idManager
           
 
Constructor Summary
IdWriter(IdManager idManager, java.io.DataOutputStream out)
          Creates a new instance of SnapshotWriter
 
Method Summary
 void flush()
          Flushes this SnapshotWriter
 void writeArcId(int arcId)
          Writes arc id.
 void writeArcProtoId(ArcProtoId arcProtoId)
          Writes ArcProtoId.
 void writeBoolean(boolean v)
          Writes boolean.
 void writeByte(byte v)
          Writes byte.
 void writeBytes(byte[] v)
          Writes bytes.
 void writeCoord(long v)
          Writes coordiante.
 void writeDiffs()
           
 void writeDouble(double v)
          Writes double.
 void writeFloat(float v)
          Writes float.
 void writeInt(int v)
          Writes integer.
 void writeLibId(LibId libId)
          Writes LibId.
 void writeLong(long v)
          Writes long.
 void writeNameKey(Name nameKey)
          Writes Name key.
 void writeNodeId(int nodeId)
          Writes node id.
 void writeNodeProtoId(NodeProtoId nodeProtoId)
          Writes NodeProtoId.
 void writeOrientation(Orientation orient)
          Writes Orientation.
 void writePoint(EPoint p)
          Writes EPoint.
 void writePortProtoId(PortProtoId portProtoId)
          Writes PortProtoId.
 void writeRectangle(ERectangle r)
          Writes ERectangle.
 void writeShort(short v)
          Writes short.
 void writeString(java.lang.String s)
          Writes string.
 void writeTechId(TechId techId)
          Writes TechId.
 void writeTextDescriptor(TextDescriptor td)
          Writes TextDescriptor.
 void writeTool(Tool tool)
          Writes Tool.
 void writeVariableKey(Variable.Key key)
          Writes variable key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idManager

public final IdManager idManager
Constructor Detail

IdWriter

public IdWriter(IdManager idManager,
                java.io.DataOutputStream out)
Creates a new instance of SnapshotWriter

Method Detail

writeDiffs

public void writeDiffs()
                throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flushes this SnapshotWriter

Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean v)
                  throws java.io.IOException
Writes boolean.

Parameters:
v - boolean to write.
Throws:
java.io.IOException

writeByte

public void writeByte(byte v)
               throws java.io.IOException
Writes byte.

Parameters:
v - byte to write.
Throws:
java.io.IOException

writeShort

public void writeShort(short v)
                throws java.io.IOException
Writes short.

Parameters:
v - short to write.
Throws:
java.io.IOException

writeInt

public void writeInt(int v)
              throws java.io.IOException
Writes integer.

Parameters:
v - integer to write.
Throws:
java.io.IOException

writeLong

public void writeLong(long v)
               throws java.io.IOException
Writes long.

Parameters:
v - long to write.
Throws:
java.io.IOException

writeFloat

public void writeFloat(float v)
                throws java.io.IOException
Writes float.

Parameters:
v - float to write.
Throws:
java.io.IOException

writeDouble

public void writeDouble(double v)
                 throws java.io.IOException
Writes double.

Parameters:
v - double to write.
Throws:
java.io.IOException

writeBytes

public void writeBytes(byte[] v)
                throws java.io.IOException
Writes bytes.

Parameters:
v - bytes to write.
Throws:
java.io.IOException

writeString

public void writeString(java.lang.String s)
                 throws java.io.IOException
Writes string.

Parameters:
s - string to write.
Throws:
java.io.IOException

writeVariableKey

public void writeVariableKey(Variable.Key key)
                      throws java.io.IOException
Writes variable key.

Parameters:
key - variable key to write.
Throws:
java.io.IOException

writeTextDescriptor

public void writeTextDescriptor(TextDescriptor td)
                         throws java.io.IOException
Writes TextDescriptor.

Parameters:
td - TextDescriptor to write.
Throws:
java.io.IOException

writeTool

public void writeTool(Tool tool)
               throws java.io.IOException
Writes Tool.

Parameters:
tool - Tool to write.
Throws:
java.io.IOException

writeTechId

public void writeTechId(TechId techId)
                 throws java.io.IOException
Writes TechId.

Parameters:
techId - TechId to write.
Throws:
java.io.IOException

writeArcProtoId

public void writeArcProtoId(ArcProtoId arcProtoId)
                     throws java.io.IOException
Writes ArcProtoId.

Parameters:
arcProtoId - ArcProtoId to write.
Throws:
java.io.IOException

writeLibId

public void writeLibId(LibId libId)
                throws java.io.IOException
Writes LibId.

Parameters:
libId - LibId to write.
Throws:
java.io.IOException

writeNodeProtoId

public void writeNodeProtoId(NodeProtoId nodeProtoId)
                      throws java.io.IOException
Writes NodeProtoId.

Parameters:
nodeProtoId - NodeProtoId to write.
Throws:
java.io.IOException

writePortProtoId

public void writePortProtoId(PortProtoId portProtoId)
                      throws java.io.IOException
Writes PortProtoId.

Parameters:
portProtoId - PortProtoId to write.
Throws:
java.io.IOException

writeNodeId

public void writeNodeId(int nodeId)
                 throws java.io.IOException
Writes node id.

Parameters:
nodeId - node id to write.
Throws:
java.io.IOException

writeArcId

public void writeArcId(int arcId)
                throws java.io.IOException
Writes arc id.

Parameters:
arcId - arc id to write.
Throws:
java.io.IOException

writeNameKey

public void writeNameKey(Name nameKey)
                  throws java.io.IOException
Writes Name key.

Parameters:
nameKey - name key to write.
Throws:
java.io.IOException

writeOrientation

public void writeOrientation(Orientation orient)
                      throws java.io.IOException
Writes Orientation.

Parameters:
orient - Orientation.
Throws:
java.io.IOException

writeCoord

public void writeCoord(long v)
                throws java.io.IOException
Writes coordiante.

Parameters:
v - gridCooridnate.
Throws:
java.io.IOException

writePoint

public void writePoint(EPoint p)
                throws java.io.IOException
Writes EPoint.

Parameters:
p - EPoint.
Throws:
java.io.IOException

writeRectangle

public void writeRectangle(ERectangle r)
                    throws java.io.IOException
Writes ERectangle.

Parameters:
r - ERectangle.
Throws:
java.io.IOException