~ubuntu-branches/ubuntu/precise/jcsp/precise

« back to all changes in this revision

Viewing changes to src/org/jcsp/net/NetChannelOutput.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-06-20 18:12:26 UTC
  • Revision ID: james.westby@ubuntu.com-20100620181226-8yg8d9rjjjiuy7oz
Tags: upstream-1.1-rc4
ImportĀ upstreamĀ versionĀ 1.1-rc4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////
 
2
//                                                                  //
 
3
//  JCSP ("CSP for Java") Libraries                                 //
 
4
//  Copyright (C) 1996-2008 Peter Welch and Paul Austin.            //
 
5
//                2001-2004 Quickstone Technologies Limited.        //
 
6
//                                                                  //
 
7
//  This library is free software; you can redistribute it and/or   //
 
8
//  modify it under the terms of the GNU Lesser General Public      //
 
9
//  License as published by the Free Software Foundation; either    //
 
10
//  version 2.1 of the License, or (at your option) any later       //
 
11
//  version.                                                        //
 
12
//                                                                  //
 
13
//  This library is distributed in the hope that it will be         //
 
14
//  useful, but WITHOUT ANY WARRANTY; without even the implied      //
 
15
//  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR         //
 
16
//  PURPOSE. See the GNU Lesser General Public License for more     //
 
17
//  details.                                                        //
 
18
//                                                                  //
 
19
//  You should have received a copy of the GNU Lesser General       //
 
20
//  Public License along with this library; if not, write to the    //
 
21
//  Free Software Foundation, Inc., 59 Temple Place, Suite 330,     //
 
22
//  Boston, MA 02111-1307, USA.                                     //
 
23
//                                                                  //
 
24
//  Author contact: P.H.Welch@kent.ac.uk                             //
 
25
//                                                                  //
 
26
//                                                                  //
 
27
//////////////////////////////////////////////////////////////////////
 
28
 
 
29
package org.jcsp.net;
 
30
 
 
31
import org.jcsp.lang.*;
 
32
 
 
33
/**
 
34
 * <p>
 
35
 * An interface that should be implemented by
 
36
 * <CODE>ChannelOutput</CODE> objects which are used for transmitting
 
37
 * over the network.
 
38
 * </p>
 
39
 * <p>
 
40
 * As well as usefully combining the <CODE>Networked</CODE> and
 
41
 * <CODE>ChannelOutput</CODE> interfaces, this interface adds a
 
42
 * <CODE>recreate()</CODE> that requests the implementing class should
 
43
 * reinitialize itself.
 
44
 * </p>
 
45
 *
 
46
 * @author Quickstone Technologies Limited
 
47
 */
 
48
public interface NetChannelOutput extends ChannelOutput, Networked
 
49
{
 
50
   /**
 
51
    * <p>
 
52
    * Requests that the instance of the implementing class should
 
53
    * reinitialize itself.
 
54
    * </p>
 
55
    */
 
56
   public void recreate();
 
57
   
 
58
   /**
 
59
    * <p>
 
60
    * Requests that the instance of the implementing class should
 
61
    * reinitialize itself with a new location.
 
62
    * </p>
 
63
    *
 
64
    * @param newLoc the new location.
 
65
    */
 
66
   public void recreate(NetChannelLocation newLoc);
 
67
   
 
68
   /**
 
69
    * <p>
 
70
    * Destroys the channel writer end and frees all the
 
71
    * underlying JCSP.NET resources.
 
72
    * </p>
 
73
    */
 
74
   public void destroyWriter();
 
75
   
 
76
   /**
 
77
    * <p>
 
78
    * Returns the factory class used for constructing this channel
 
79
    * end object.
 
80
    * </p>
 
81
    *
 
82
    * @return the <code>Class</code> of the
 
83
    */
 
84
   public Class getFactoryClass();
 
85
   
 
86
}
 
 
b'\\ No newline at end of file'