capture
[rrq/gorite.git] / com / intendico / gorite / addon / remote / Connection.java
1 /*********************************************************************
2 Copyright 2013, Ralph Ronnquist.
3 **********************************************************************/
4
5 package com.intendico.gorite.addon.remote;
6
7 import com.intendico.gorite.addon.*;
8 import com.intendico.data.Ref;
9 import com.intendico.gorite.Capability;
10 import com.intendico.gorite.Data;
11 import com.intendico.gorite.Goal.States;
12 import com.intendico.gorite.Goal;
13 import java.util.Vector;
14
15     /**
16      * This interface is implemented by the connectivity sub system,
17      * to represent a particular goal execution connection.
18      */
19     public interface Connection {
20         /**
21          * This method is used repeatedly in order to discover the
22          * status of the remote goal execution.
23          */
24         public States check() throws Throwable;
25
26         /**
27          * This method will be called if the goal execution is to be
28          * cancelled form the triggering side.
29          */
30         public void cancel();
31         
32         public Vector<Ref> results();
33     }