[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Space.java, 1.109, 1.110
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-01-23 10:51:53
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25924/src/net/sourceforge/bprocessor/model Modified Files: Space.java Log Message: Union progress Index: Space.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v retrieving revision 1.109 retrieving revision 1.110 diff -C2 -d -r1.109 -r1.110 *** Space.java 6 Jan 2007 21:06:59 -0000 1.109 --- Space.java 23 Jan 2007 10:51:51 -0000 1.110 *************** *** 148,152 **** * Constructor for persistence layer */ ! Space() { envelope = new HashSet(); transform = new TransformStack(); --- 148,152 ---- * Constructor for persistence layer */ ! protected Space() { envelope = new HashSet(); transform = new TransformStack(); *************** *** 210,216 **** * @throws Exception If a part is being extended */ ! public Space createConstructionSpace(String name) throws Exception { if (this.level == PART_LEVEL) { ! throw new Exception("Not leagal to make further levels of detail, max level is PART"); } if (this.level == ELEMENT_LEVEL) { --- 210,216 ---- * @throws Exception If a part is being extended */ ! public Space createConstructionSpace(String name) { if (this.level == PART_LEVEL) { ! throw new Error("Not legal to make further levels of detail, max level is PART"); } if (this.level == ELEMENT_LEVEL) { *************** *** 236,240 **** Space cur; if (this.level == PART_LEVEL) { ! throw new Exception("Not leagal to make further levels of detail, max level is PART"); } if (this.level == ELEMENT_LEVEL) { --- 236,240 ---- Space cur; if (this.level == PART_LEVEL) { ! throw new Exception("Not legal to make further levels of detail, max level is PART"); } if (this.level == ELEMENT_LEVEL) { *************** *** 1731,1734 **** --- 1731,1748 ---- /** + * + * @return new space + */ + public Space simpleCopy() { + Space copy = new Space(); + copy.classification = classification; + copy.container = container; + copy.description = description; + copy.level = level; + copy.name = name; + return copy; + } + + /** * Copy the envelope of the owner * |