]> rtime.felk.cvut.cz Git - orte.git/blob - orte/java/src/org/ocera/orte/Domain.java
JORTE: remove unused code
[orte.git] / orte / java / src / org / ocera / orte / Domain.java
1 /* Domain.java */
2
3 /**
4   * Class Domain provides methods for work with the ORTE domain.
5   *
6   * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
7   * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
8   * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
9   * @author dedication to Kj
10   * @version 0.1
11   *
12   * This program is free software; you can redistribute it and/or modify
13   * it under the terms of the GNU General Public License as published by
14   * the Free Software Foundation; either version 2 of the License, or
15   * (at your option) any later version.
16   *
17   * This program is distributed in the hope that it will be useful,
18   * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   * GNU General Public License for more details.
21   *
22   */
23
24 package org.ocera.orte;
25 import  org.ocera.orte.types.*;
26
27
28 public class Domain {
29
30    /** load native library 'libjorte.so' */
31    static {
32       System.loadLibrary("jorte");
33    }
34
35    /* domain fields */
36    protected long              handle;
37    public DomainProp           props;
38    public DomainEvents         events;
39
40
41    /* constructor */
42    public Domain()
43    {
44      // initialization of ORTE layer
45      JOrte.init();
46      //System.out.println(":j: instance of 'Domain' created ..");
47    }
48
49
50   /**
51    * Get handle of the Application Domain.   
52    * @return Handle of the Application Domain. 
53    */
54    public long getHandle()
55    {
56      return this.handle;
57    }
58
59    /**
60     * Get handle of the Application Domain.   
61     * @return Handle of the Application Domain. 
62     */
63     public boolean destroy() 
64     {
65         return false;
66     }
67 }