Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11833
Modified Files:
Edge.java
Log Message:
Added method to get all surfaces an edge is a part of
Index: Edge.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Edge.java 16 Aug 2005 11:45:03 -0000 1.5
--- Edge.java 23 Aug 2005 12:11:03 -0000 1.6
***************
*** 11,14 ****
--- 11,16 ----
import org.apache.log4j.Logger;
+ import java.util.Set;
+
/**
* The edge
***************
*** 170,172 ****
--- 172,182 ----
return "Edge[id=" + id + ",name=" + name + ",from=" + from + ",to=" + to + "]";
}
+
+ /**
+ * Gets all surfaces this edge is a part of.
+ * @return the set of surfaces
+ */
+ public Set getSurfaces() {
+ return SurfaceFacade.getInstance().findByEdge(this);
+ }
}
|