|
32 | 32 | import java.util.logging.Logger; |
33 | 33 |
|
34 | 34 | /** |
35 | | - * <h3>General description</h3> |
| 35 | + * <h2>General description</h2> |
36 | 36 | * |
37 | 37 | * <p> |
38 | 38 | * This is another FSUIPC wrapper class... This one uses {@link FSUIPCWrapper} |
@@ -404,7 +404,7 @@ public static synchronized FSUIPC getInstance() { |
404 | 404 | } |
405 | 405 |
|
406 | 406 | /** |
407 | | - * This function will try to load 3native library that implements this |
| 407 | + * This function will try to load the 32bit/64bit native library that implements this |
408 | 408 | * wrapper native methods. Note that it tries to determine the architecture |
409 | 409 | * by reading the "sun.arch.data.model" system property and then call {@link #load32() |
410 | 410 | * } or {@link #load64() } based on result. The result can also be |
@@ -644,6 +644,16 @@ public int connect(FSUIPCWrapper.FSUIPCSimVersion simVersion) { |
644 | 644 | } |
645 | 645 | return iRet; |
646 | 646 | } |
| 647 | + |
| 648 | + /** |
| 649 | + * Will return the value of the internal {@link AtomicBoolean} variable that is being updated when |
| 650 | + * FSUIPC is connected/disconnected. |
| 651 | + * |
| 652 | + * @return True if FSUIPC is connected, false otherwise. |
| 653 | + */ |
| 654 | + public boolean isConnected() { |
| 655 | + return this.connected.get(); |
| 656 | + } |
647 | 657 |
|
648 | 658 | /** |
649 | 659 | * This method will init thread that will continuously try to connect to |
@@ -933,9 +943,7 @@ public IDataRequest addOneTimeRequest(IDataRequest dataRequest) { |
933 | 943 | } |
934 | 944 |
|
935 | 945 | /** |
936 | | - * This method will add data request to the continual requests array.This |
937 | | - * array will be emptied once successfully processed via the |
938 | | - * {@link #processRequestsOnce()} function. |
| 946 | + * This method will add data request to the continual requests array. |
939 | 947 | * |
940 | 948 | * @param dataRequest Read or Write data request. |
941 | 949 | * @return The passed <b>dataRequest</b> if not null, otherwise null. |
|
0 commit comments