org.autopipes
Interface Floor

All Known Implementing Classes:
FloorImp

public interface Floor

Exposes service interface for drawing manipulation.


Nested Class Summary
static interface Floor.Area
          Represents a connected component of a drawing.
static interface Floor.Command
          Parent interface of all messages sent by a client.
 
Method Summary
 void buildGraph()
          Builds a graph representation of a drawing.
 void exportLabels(java.io.Writer wri)
          Stream version of addBranchLabels.
 ConfigurationMgr getConfiguration()
          Gets current drawing configuration.
 DrawingMgr getDrawing()
          Gets current drawing.
 java.util.Map getGraphs()
          Gets a map of connected components of a graph built from a drawing.
 void processComand(Floor.Command cmd, org.w3c.dom.Node out)
          Top level message dispatcher.
 void processDrawing(org.xml.sax.InputSource cfgIs, org.xml.sax.InputSource dwgIs)
          Entry point for all drawing processing.
 void setConfiguration(ConfigurationMgr conf)
          Sets current drawing configuration.
 void setDrawing(DrawingMgr dwg)
          Sets current drawing.
 

Method Detail

exportLabels

void exportLabels(java.io.Writer wri)
                  throws java.lang.IllegalAccessException,
                         javax.xml.bind.JAXBException
Stream version of addBranchLabels.

Parameters:
wri - the stream
Throws:
java.lang.IllegalAccessException
javax.xml.bind.JAXBException

getConfiguration

ConfigurationMgr getConfiguration()
Gets current drawing configuration.

Returns:
the configuration

setConfiguration

void setConfiguration(ConfigurationMgr conf)
Sets current drawing configuration.

Parameters:
conf - the configuration

getDrawing

DrawingMgr getDrawing()
Gets current drawing.

Returns:
the drawing

setDrawing

void setDrawing(DrawingMgr dwg)
Sets current drawing.

Parameters:
dwg - the drawing

getGraphs

java.util.Map getGraphs()
Gets a map of connected components of a graph built from a drawing. The map is indexed by a raiser entry point.

Returns:
the map

processDrawing

void processDrawing(org.xml.sax.InputSource cfgIs,
                    org.xml.sax.InputSource dwgIs)
                    throws javax.xml.bind.JAXBException,
                           java.lang.IllegalAccessException,
                           java.lang.CloneNotSupportedException
Entry point for all drawing processing.

Parameters:
cfgIs - configuration source
dwgIs - drawing source
Throws:
java.lang.Exception
javax.xml.bind.JAXBException
java.lang.IllegalAccessException
java.lang.CloneNotSupportedException

buildGraph

void buildGraph()
                throws java.lang.IllegalAccessException,
                       java.lang.CloneNotSupportedException
Builds a graph representation of a drawing.

Throws:
java.lang.IllegalAccessException
java.lang.CloneNotSupportedException

processComand

void processComand(Floor.Command cmd,
                   org.w3c.dom.Node out)
                   throws java.lang.IllegalAccessException,
                          javax.xml.bind.JAXBException
Top level message dispatcher. Processes a message and builds a reply XML.

Parameters:
cmd - the message
out - the node to which the reply is attached
Throws:
java.lang.IllegalAccessException
javax.xml.bind.JAXBException