Author: tobr
Date: Tue Feb 12 16:31:06 2013
New Revision: 1445243
URL: http://svn.apache.org/r1445243
Log:
changed to abstract class and added setLinks
Modified:
incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/LinkedTask.java
Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/LinkedTask.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/LinkedTask.java?rev=1445243&r1=1445242&r2=1445243&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/LinkedTask.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/core/LinkedTask.java
Tue Feb 12 16:31:06 2013
@@ -1,6 +1,4 @@
-package org.apache.droids.core;
/*
-
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -16,7 +14,7 @@ package org.apache.droids.core;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+package org.apache.droids.core;
import java.util.Collection;
@@ -26,19 +24,32 @@ import java.util.Collection;
*
* @version 1.0
*/
-public interface LinkedTask extends Task {
+public abstract class LinkedTask implements Task {
+ private Collection<LinkedTask> linksTo;
+
/**
* From where the link was created.
*
* @return the parent link from where the link was coming from
*/
- LinkedTask getFrom();
+ public abstract LinkedTask getFrom();
/**
* To where the link is pointing to.
*
* @return the location where the link is pointing to
*/
- Collection<LinkedTask> getTo();
+ public Collection<LinkedTask> getTo() {
+ return this.linksTo;
+ }
+
+ /**
+ * Set Outgoing links.
+ *
+ * @param linksTo Collection<URI>
+ */
+ public void setTo(Collection<LinkedTask> linksTo) {
+ this.linksTo = linksTo;
+ }
}
|