Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9143/src/net/sourceforge/bprocessor/model
Modified Files:
Line.java CoordinateSystem.java
Log Message:
changed the getters to return a copy of the vectors so that noone can change them without using a setter method
Index: CoordinateSystem.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** CoordinateSystem.java 6 Jul 2006 10:42:09 -0000 1.12
--- CoordinateSystem.java 13 Jul 2006 13:30:14 -0000 1.13
***************
*** 87,91 ****
*/
public Vertex getI() {
! return i;
}
--- 87,91 ----
*/
public Vertex getI() {
! return i.copy();
}
***************
*** 95,99 ****
*/
public Vertex getJ() {
! return j;
}
--- 95,99 ----
*/
public Vertex getJ() {
! return j.copy();
}
***************
*** 103,107 ****
*/
public Vertex getN() {
! return n;
}
--- 103,107 ----
*/
public Vertex getN() {
! return n.copy();
}
Index: Line.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Line.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Line.java 12 Jul 2006 14:30:36 -0000 1.8
--- Line.java 13 Jul 2006 13:30:14 -0000 1.9
***************
*** 44,48 ****
*/
public Vertex getDirection() {
! return dir;
}
--- 44,48 ----
*/
public Vertex getDirection() {
! return dir.copy();
}
|