From: Bruce H. <bh...@bh...> - 2006-10-14 16:02:09
|
hmm... that may work IF we have an edge going from each node to itself and we fill it w/ the null converter (converter that takes the input and returns it as the output) Bruce On 10/14/06, bea...@us... <bea...@us...> wrote: > > Revision: 279 > http://svn.sourceforge.net/cishell/?rev=279&view=rev > Author: bearsfan > Date: 2006-10-14 08:53:43 -0700 (Sat, 14 Oct 2006) > > Log Message: > ----------- > Added check in 'getConverter' method, if the inType==outType then return a > 'null' converter. > > Modified Paths: > -------------- > > trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java > > Modified: > trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java > =================================================================== > --- > trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java 2006-10-13 > 23:23:12 UTC (rev 278) > +++ > trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java 2006-10-14 > 15:53:43 UTC (rev 279) > @@ -230,6 +230,10 @@ > Vertex srcVertex = (Vertex)dataTypeToVertex.get(inType); > Vertex tgtVertex = (Vertex)dataTypeToVertex.get(outType); > > + if (srcVertex.equals(tgtVertex)) { > + return new ConverterImpl(bContext, ciContext, new > ServiceReference[0]); > + } > + > if (srcVertex != null && tgtVertex != null) { > DijkstraShortestPath shortestPathAlg = new > DijkstraShortestPath(graph); > List edgeList = shortestPathAlg.getPath(srcVertex, > tgtVertex); > > > This was sent by the SourceForge.net collaborative development platform, > the world's largest Open Source development site. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Cishell-svn mailing list > Cis...@li... > https://lists.sourceforge.net/lists/listinfo/cishell-svn > |