[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Direction.java, 1.13, 1.14
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-08-30 13:57:45
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3245/src/net/sourceforge/bprocessor/model Modified Files: Direction.java Log Message: progress on the move tool Index: Direction.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Direction.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Direction.java 23 Feb 2006 14:05:13 -0000 1.13 --- Direction.java 30 Aug 2007 13:57:35 -0000 1.14 *************** *** 17,20 **** --- 17,24 ---- private Vertex direction; + private double lower; + private double upper; + + /** * Constructor *************** *** 25,28 **** --- 29,48 ---- vertex = which; direction = dir; + lower = Double.NEGATIVE_INFINITY; + upper = Double.POSITIVE_INFINITY; + } + + /** + * Constrcutor + * @param which the point + * @param dir the direction of the point + * @param lower lower limit of movement + * @param upper upper limit of movement + */ + public Direction(Vertex which, Vertex dir, double lower, double upper) { + vertex = which; + direction = dir; + this.lower = lower; + this.upper = upper; } *************** *** 76,79 **** --- 96,115 ---- /** + * Returns upper + * @return upper + */ + public double upper() { + return upper; + } + + /** + * Returns lower + * @return lower + */ + public double lower() { + return lower; + } + + /** * The string representation of the Direstion * @return The string representation of the Direstion |