[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Space.java, 1.62, 1.63
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-09-18 08:19:27
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9746/src/net/sourceforge/bprocessor/model Modified Files: Space.java Log Message: A space can contain more than one transformation Index: Space.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** Space.java 17 Sep 2006 19:04:59 -0000 1.62 --- Space.java 18 Sep 2006 08:19:25 -0000 1.63 *************** *** 110,114 **** /** The transformation */ ! private Transform transform; /** The construcstionspace classification options */ --- 110,115 ---- /** The transformation */ ! private List transformations; ! /** The construcstionspace classification options */ *************** *** 164,167 **** --- 165,169 ---- description = new Description(""); envelope = new HashSet(); + transformations = new LinkedList(); if (container) { vertices = new HashMap(); *************** *** 218,225 **** /** * Get transformation ! * @return transformation */ ! public Transform getTransform() { ! return transform; } --- 220,227 ---- /** * Get transformation ! * @return transformations */ ! public List getTransformations() { ! return transformations; } *************** *** 228,233 **** * @param transform Transform */ ! public void setTransform(Transform transform) { ! this.transform = transform; } --- 230,235 ---- * @param transform Transform */ ! public void addTransform(Transform transform) { ! transformations.add(transform); } *************** *** 1207,1212 **** } } ! if (getTransform() != null) { ! res.add(new Attribute("Transform", getTransform())); } return res; --- 1209,1215 ---- } } ! Iterator iter = getTransformations().iterator(); ! while (iter.hasNext()) { ! res.add(new Attribute("Transform", iter.next())); } return res; |