File: decaf.sidl

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (114 lines) | stat: -rw-r--r-- 4,280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
require gov.cca version 0.6.3;

package decaf version 0.6.3 { 

    class Services implements-all gov.cca.Services,  gov.cca.ports.ConnectionEventService {
	
	void bindPort( in string portName, in gov.cca.Port port );
	
	gov.cca.Port getProvidesPort( in string name );
	
	void initialize( in gov.cca.AbstractFramework fwk, 
			 in gov.cca.ComponentID componentID, 
			 in gov.cca.TypeMap properties, in bool is_alias);
	
	gov.cca.TypeMap getInstanceProperties();
	
	void setInstanceProperties( in gov.cca.TypeMap properties );
	
	void setPortProperties( in string portName, in gov.cca.TypeMap properties );
	
	array<string> getProvidedPortNames();
	
	array<string> getUsedPortNames();
	
	void notifyConnectionEvent( in string portName, in gov.cca.ports.EventType event );
    }
    
    class ComponentID implements-all gov.cca.ComponentID {
	void initialize( in string name );
    }
    enum Type {
	None, Int, Long, Float, Double, Fcomplex, Dcomplex, String, Bool, 
	IntArray, LongArray, FloatArray, DoubleArray, FcomplexArray, 
	DcomplexArray, StringArray, BoolArray, Opaque, OpaqueArray, TypeMapT, TypeMapArrayT
    } 
    class TypeMap implements-all gov.cca.TypeMap { 
	opaque getOpaque( in string key, in opaque dflt) throws gov.cca.TypeMismatchException;
	array<opaque> getOpaqueArray( in string key, in array<opaque> dflt)  throws gov.cca.TypeMismatchException;
	void putOpaque( in string key, in opaque value );
	void putOpaqueArray( in string key, in array<opaque> value );

	TypeMap getTypeMap( in string key, in TypeMap dflt) throws gov.cca.TypeMismatchException;
	array<TypeMap> getTypeMapArray( in string key, in array<TypeMap> dflt)  throws gov.cca.TypeMismatchException;
	void putTypeMap( in string key, in TypeMap value );
	void putTypeMapArray( in string key, in array<TypeMap> value );

    }
    
    class TypeMismatchException extends sidl.SIDLException 
                                implements-all gov.cca.TypeMismatchException 
    {
	gov.cca.CCAExceptionType getCCAExceptionType();
	gov.cca.Type getRequestedType();
	gov.cca.Type getActualType();        
	void initialize( in gov.cca.Type requestedType, in gov.cca.Type actualType );
    } 
    
  class Framework implements-all gov.cca.AbstractFramework, gov.cca.ports.BuilderService {
      /**
       * Return the named port from the specified component id.
       */
      gov.cca.Port lookupPort(in gov.cca.ComponentID componentID, in string portName);
      
      /**
       * Framework creates providing component, registers provides port and connects to
       * using port for special cases (e.g. BuilderService)
       * @param type the string name of the port type 
       * (currently accepts only "gov.cca.ports.BuilderServices" and 
       * gov.cca.ports.ConnectionEventServices)
       * @param componentID the ID of the user component
       * @param portName the userPortName on the user component
       */
      void provideRequestedServices( in gov.cca.ComponentID componentID, 
				     in string portName, in string type );
      
      /**
       * 
       */
      void setInstanceRelease( in gov.cca.ComponentID cid, in gov.cca.ComponentRelease callback );
      
  }

  class ConnectionID implements-all gov.cca.ConnectionID { 
      void initialize(  in gov.cca.ComponentID user    , in string userPortName, 
			in gov.cca.ComponentID provider, in string providerPortName, 
		        in gov.cca.TypeMap properties );
      void setProperties( in gov.cca.TypeMap properties );
      gov.cca.TypeMap getProperties();
  } 
  
  class CCAException extends sidl.SIDLException 
                     implements-all gov.cca.CCAException 
  {
      gov.cca.CCAExceptionType getCCAExceptionType();
      void setCCAExceptionType( in gov.cca.CCAExceptionType et );
  }
  
  class ComponentClassDescription implements-all gov.cca.ComponentClassDescription { }
  
  package ports { 

     class ParameterPort implements-all gov.cca.ports.ParameterPort, gov.cca.ports.ParameterPortFactory  { } 

      class ConnectionEvent implements-all gov.cca.ports.ConnectionEvent { 
	  void initialize( in gov.cca.ports.EventType eventType, 
			   in gov.cca.TypeMap portProperties );
      } 
      
      class ComponentRepository implements-all gov.cca.ports.ComponentRepository { }
  }
  
}