summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/Path.java
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-10-17 17:34:54 +0000
committerPeter Palfrader <peter@palfrader.org>2003-10-17 17:34:54 +0000
commit46a03a3ea3c26a65e4428bc9de036a01487aeda3 (patch)
tree6a05fbfcb47a7f08eba65fc3a0f7c3e7247a629e /src/org/noreply/fancydress/type3/Path.java
parentf5d3577a642e961ff247abef37e05c2399b26736 (diff)
First go at refactoring for PathSpecs
Diffstat (limited to 'src/org/noreply/fancydress/type3/Path.java')
-rw-r--r--src/org/noreply/fancydress/type3/Path.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/org/noreply/fancydress/type3/Path.java b/src/org/noreply/fancydress/type3/Path.java
index 4289f6b..8373990 100644
--- a/src/org/noreply/fancydress/type3/Path.java
+++ b/src/org/noreply/fancydress/type3/Path.java
@@ -12,13 +12,9 @@ public class Path {
HalfPath first;
HalfPath second;
- public Path(Directory dir, String path) throws Mix3Exception {
- int crossover = path.indexOf(':');
- if (crossover < 0)
- throw new Mix3Exception("Path is not a valid path: no crossover point specified.");
-
- first = new HalfPath(dir, path.substring(0, crossover));
- second = new HalfPath(dir, path.substring(crossover+1));
+ public Path(Hop[] leg1, Hop[] leg2) {
+ first = new HalfPath(leg1);
+ second = new HalfPath(leg2);
}
public HalfPath getFirstHalf() {