KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CDL > CompBind


1 /* $Id: CompBind.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.SOFAnode.Made.CDL;
3  
4 public class CompBind extends CompContainedIm {
5   public static final int m_bind = 0;
6   public static final int m_subsume = 1;
7   public static final int m_delegate = 2;
8
9   public CompBindOper lhs;
10   public CompBindOper rhs;
11   public int mode;
12   public String JavaDoc using;
13
14   public CompBind(CompContainer parent, CompRepository rep, CompBindOper l, CompBindOper r, int mode) {
15     super(ObjectsKind.o_Bind, new ID("Bind"+(((CompArchitecture)parent).numOfBind++),((CompContained)parent).getIdent().version) , parent, rep);
16     
17     id.version = ((CompContained)parent).getIdent().version;
18     lhs = l;
19     rhs = r;
20     using = "CSProcCall";
21     this.mode = mode;
22   }
23   
24   public CompBind(CompContainer parent, CompRepository rep, CompBindOper l, CompBindOper r, int mode, String JavaDoc using) {
25     super(ObjectsKind.o_Bind, new ID("Bind"+(((CompArchitecture)parent).numOfBind++),((CompContained)parent).getIdent().version) , parent, rep);
26     
27     id.version = ((CompContained)parent).getIdent().version;
28     lhs = l;
29     rhs = r;
30     this.using = using;
31     this.mode = mode;
32   }
33
34   public void checkConsist(EnumList props, CompRepository rep) throws CDLExceptCheck, CDLExceptLock, CDLExceptRemote {
35     lhs.checkConsist(props,rep);
36     rhs.checkConsist(props,rep);
37   }
38 }
39
Popular Tags