Blame view

BRIC/src/CREATOR_CONDICTIONS_RULES/CreatorConditionD3.java 1.07 KB
eeb5cac08   Madiel de Souza Conserva Filho   first
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
  /*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  package CREATOR_CONDICTIONS_RULES;
  
  import LOGIC.Instance;
  import LOGIC.Protocols;
  import java.util.LinkedList;
  
  /**
   *
   * @author sarah
   */
  public class CreatorConditionD3 {
      private String condiction = "";
      private LinkedList<Instance> instance;
      private LinkedList<Protocols> protChannel;
      
      public CreatorConditionD3(LinkedList<Instance> i, LinkedList<Protocols> listProtocols) {
          this.instance = i;
          this.protChannel = listProtocols;
      }
      
     
      private String implementation_Condition_D3() {
      
          //D.3 : Alphabets are disjoint
  
          condiction = condiction + "
  
  ";
          condiction = condiction + "--D.3:Alphabets are disjont";
          condiction = condiction + "
  
  ";
          condiction = condiction + "assert STOP [T= RUN(inter(events("
                  + instance.get(0).getName() + "),events(" + 
                  instance.get(1).getName()+ ")))";
          condiction = condiction + "
  
  ";
          
          return condiction;
      }
  }