Skip to content

Commit

Permalink
Automated update to SWIG generated interface files (#2113)
Browse files Browse the repository at this point in the history
Co-authored-by: HELICS-bot <[email protected]>
  • Loading branch information
github-actions[bot] and HELICS-bot authored Sep 17, 2021
1 parent 27ee5b6 commit 0b2111b
Show file tree
Hide file tree
Showing 230 changed files with 1,204 additions and 657 deletions.
42 changes: 42 additions & 0 deletions interfaces/java/interface/helics.java
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,28 @@ public static void helicsFederateFinalizeComplete(SWIGTYPE_p_void fed) {
helicsJNI.helicsFederateFinalizeComplete(SWIGTYPE_p_void.getCPtr(fed));
}

/**
* Disconnect/finalize the federate. This function halts all communication in the federate and disconnects it<br>
* from the core. This call is identical to helicsFederateFinalize.
*/
public static void helicsFederateDisconnect(SWIGTYPE_p_void fed) {
helicsJNI.helicsFederateDisconnect(SWIGTYPE_p_void.getCPtr(fed));
}

/**
* Disconnect/finalize the federate in an async call. This call is identical to helicsFederateFinalizeAsync.
*/
public static void helicsFederateDisconnectAsync(SWIGTYPE_p_void fed) {
helicsJNI.helicsFederateDisconnectAsync(SWIGTYPE_p_void.getCPtr(fed));
}

/**
* Complete the asynchronous disconnect/finalize call. This call is identical to helicsFederateFinalizeComplete.
*/
public static void helicsFederateDisconnectComplete(SWIGTYPE_p_void fed) {
helicsJNI.helicsFederateDisconnectComplete(SWIGTYPE_p_void.getCPtr(fed));
}

/**
* Release the memory associated with a federate.
*/
Expand Down Expand Up @@ -2754,6 +2776,7 @@ public static int helicsEndpointHasMessage(SWIGTYPE_p_void endpoint) {
}

/**
* Deprecated, please use helicsFederatePendingMessageCount instead.<br>
* Returns the number of pending receives for the specified destination endpoint.<br>
* <br>
* @param fed The federate to get the number of waiting messages from.
Expand All @@ -2763,6 +2786,16 @@ public static int helicsFederatePendingMessages(SWIGTYPE_p_void fed) {
}

/**
* Returns the number of pending receives for the specified destination endpoint.<br>
* <br>
* @param fed The federate to get the number of waiting messages from.
*/
public static int helicsFederatePendingMessageCount(SWIGTYPE_p_void fed) {
return helicsJNI.helicsFederatePendingMessageCount(SWIGTYPE_p_void.getCPtr(fed));
}

/**
* Deprecated, please use helicsEndpointPendingMessageCount instead.<br>
* Returns the number of pending receives for all endpoints of a particular federate.<br>
* <br>
* @param endpoint The endpoint to query.
Expand All @@ -2771,6 +2804,15 @@ public static int helicsEndpointPendingMessages(SWIGTYPE_p_void endpoint) {
return helicsJNI.helicsEndpointPendingMessages(SWIGTYPE_p_void.getCPtr(endpoint));
}

/**
* Returns the number of pending receives for all endpoints of a particular federate.<br>
* <br>
* @param endpoint The endpoint to query.
*/
public static int helicsEndpointPendingMessageCount(SWIGTYPE_p_void endpoint) {
return helicsJNI.helicsEndpointPendingMessageCount(SWIGTYPE_p_void.getCPtr(endpoint));
}

/**
* Receive a packet from a particular endpoint.<br>
* <br>
Expand Down
5 changes: 5 additions & 0 deletions interfaces/java/interface/helicsJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ public class helicsJNI {
public final static native void helicsFederateFinalize(long jarg1);
public final static native void helicsFederateFinalizeAsync(long jarg1);
public final static native void helicsFederateFinalizeComplete(long jarg1);
public final static native void helicsFederateDisconnect(long jarg1);
public final static native void helicsFederateDisconnectAsync(long jarg1);
public final static native void helicsFederateDisconnectComplete(long jarg1);
public final static native void helicsFederateFree(long jarg1);
public final static native void helicsCloseLibrary();
public final static native void helicsFederateEnterInitializingMode(long jarg1);
Expand Down Expand Up @@ -417,7 +420,9 @@ public class helicsJNI {
public final static native int helicsFederateHasMessage(long jarg1);
public final static native int helicsEndpointHasMessage(long jarg1);
public final static native int helicsFederatePendingMessages(long jarg1);
public final static native int helicsFederatePendingMessageCount(long jarg1);
public final static native int helicsEndpointPendingMessages(long jarg1);
public final static native int helicsEndpointPendingMessageCount(long jarg1);
public final static native long helicsEndpointGetMessage(long jarg1);
public final static native long helicsEndpointGetMessageObject(long jarg1);
public final static native long helicsEndpointCreateMessageObject(long jarg1);
Expand Down
97 changes: 97 additions & 0 deletions interfaces/java/interface/helicsJava.c
Original file line number Diff line number Diff line change
Expand Up @@ -4362,6 +4362,75 @@ SWIGEXPORT void JNICALL Java_com_java_helics_helicsJNI_helicsFederateFinalizeCom
}


SWIGEXPORT void JNICALL Java_com_java_helics_helicsJNI_helicsFederateDisconnect(JNIEnv *jenv, jclass jcls, jlong jarg1) {
helics_federate arg1 = (helics_federate) 0 ;
helics_error *arg2 = (helics_error *) 0 ;
helics_error etemp2 ;

(void)jenv;
(void)jcls;
{
etemp2=helicsErrorInitialize();
arg2=&etemp2;
}
arg1 = *(helics_federate *)&jarg1;
helicsFederateDisconnect(arg1,arg2);
{
if (arg2->error_code!=helics_ok)
{
jclass clazz = (*jenv)->FindClass(jenv, "java/lang/Exception");
(*jenv)->ThrowNew(jenv, clazz, arg2->message);
}
}
}


SWIGEXPORT void JNICALL Java_com_java_helics_helicsJNI_helicsFederateDisconnectAsync(JNIEnv *jenv, jclass jcls, jlong jarg1) {
helics_federate arg1 = (helics_federate) 0 ;
helics_error *arg2 = (helics_error *) 0 ;
helics_error etemp2 ;

(void)jenv;
(void)jcls;
{
etemp2=helicsErrorInitialize();
arg2=&etemp2;
}
arg1 = *(helics_federate *)&jarg1;
helicsFederateDisconnectAsync(arg1,arg2);
{
if (arg2->error_code!=helics_ok)
{
jclass clazz = (*jenv)->FindClass(jenv, "java/lang/Exception");
(*jenv)->ThrowNew(jenv, clazz, arg2->message);
}
}
}


SWIGEXPORT void JNICALL Java_com_java_helics_helicsJNI_helicsFederateDisconnectComplete(JNIEnv *jenv, jclass jcls, jlong jarg1) {
helics_federate arg1 = (helics_federate) 0 ;
helics_error *arg2 = (helics_error *) 0 ;
helics_error etemp2 ;

(void)jenv;
(void)jcls;
{
etemp2=helicsErrorInitialize();
arg2=&etemp2;
}
arg1 = *(helics_federate *)&jarg1;
helicsFederateDisconnectComplete(arg1,arg2);
{
if (arg2->error_code!=helics_ok)
{
jclass clazz = (*jenv)->FindClass(jenv, "java/lang/Exception");
(*jenv)->ThrowNew(jenv, clazz, arg2->message);
}
}
}


SWIGEXPORT void JNICALL Java_com_java_helics_helicsJNI_helicsFederateFree(JNIEnv *jenv, jclass jcls, jlong jarg1) {
helics_federate arg1 = (helics_federate) 0 ;

Expand Down Expand Up @@ -8569,6 +8638,20 @@ SWIGEXPORT jint JNICALL Java_com_java_helics_helicsJNI_helicsFederatePendingMess
}


SWIGEXPORT jint JNICALL Java_com_java_helics_helicsJNI_helicsFederatePendingMessageCount(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jint jresult = 0 ;
helics_federate arg1 = (helics_federate) 0 ;
int result;

(void)jenv;
(void)jcls;
arg1 = *(helics_federate *)&jarg1;
result = (int)helicsFederatePendingMessageCount(arg1);
jresult = (jint)result;
return jresult;
}


SWIGEXPORT jint JNICALL Java_com_java_helics_helicsJNI_helicsEndpointPendingMessages(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jint jresult = 0 ;
helics_endpoint arg1 = (helics_endpoint) 0 ;
Expand All @@ -8583,6 +8666,20 @@ SWIGEXPORT jint JNICALL Java_com_java_helics_helicsJNI_helicsEndpointPendingMess
}


SWIGEXPORT jint JNICALL Java_com_java_helics_helicsJNI_helicsEndpointPendingMessageCount(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jint jresult = 0 ;
helics_endpoint arg1 = (helics_endpoint) 0 ;
int result;

(void)jenv;
(void)jcls;
arg1 = *(helics_endpoint *)&jarg1;
result = (int)helicsEndpointPendingMessageCount(arg1);
jresult = (jint)result;
return jresult;
}


SWIGEXPORT jlong JNICALL Java_com_java_helics_helicsJNI_helicsEndpointGetMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong jresult = 0 ;
helics_endpoint arg1 = (helics_endpoint) 0 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsBrokerClearTimeBarrier(varargin)
[varargout{1:nargout}] = helicsMEX(153, varargin{:});
[varargout{1:nargout}] = helicsMEX(156, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsBrokerGlobalError(varargin)
[varargout{1:nargout}] = helicsMEX(154, varargin{:});
[varargout{1:nargout}] = helicsMEX(157, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsBrokerSetGlobal(varargin)
[varargout{1:nargout}] = helicsMEX(149, varargin{:});
[varargout{1:nargout}] = helicsMEX(152, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsBrokerSetLogFile(varargin)
[varargout{1:nargout}] = helicsMEX(151, varargin{:});
[varargout{1:nargout}] = helicsMEX(154, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsBrokerSetTimeBarrier(varargin)
[varargout{1:nargout}] = helicsMEX(152, varargin{:});
[varargout{1:nargout}] = helicsMEX(155, varargin{:});
end
2 changes: 1 addition & 1 deletion interfaces/matlab/interface/+helics/helicsCleanupLibrary.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCleanupLibrary(varargin)
[varargout{1:nargout}] = helicsMEX(167, varargin{:});
[varargout{1:nargout}] = helicsMEX(170, varargin{:});
end
2 changes: 1 addition & 1 deletion interfaces/matlab/interface/+helics/helicsCloseLibrary.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCloseLibrary(varargin)
[varargout{1:nargout}] = helicsMEX(110, varargin{:});
[varargout{1:nargout}] = helicsMEX(113, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCoreGlobalError(varargin)
[varargout{1:nargout}] = helicsMEX(155, varargin{:});
[varargout{1:nargout}] = helicsMEX(158, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCoreRegisterCloningFilter(varargin)
[varargout{1:nargout}] = helicsMEX(311, varargin{:});
[varargout{1:nargout}] = helicsMEX(316, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCoreRegisterFilter(varargin)
[varargout{1:nargout}] = helicsMEX(310, varargin{:});
[varargout{1:nargout}] = helicsMEX(315, varargin{:});
end
2 changes: 1 addition & 1 deletion interfaces/matlab/interface/+helics/helicsCoreSetGlobal.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCoreSetGlobal(varargin)
[varargout{1:nargout}] = helicsMEX(148, varargin{:});
[varargout{1:nargout}] = helicsMEX(151, varargin{:});
end
2 changes: 1 addition & 1 deletion interfaces/matlab/interface/+helics/helicsCoreSetLogFile.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCoreSetLogFile(varargin)
[varargout{1:nargout}] = helicsMEX(150, varargin{:});
[varargout{1:nargout}] = helicsMEX(153, varargin{:});
end
2 changes: 1 addition & 1 deletion interfaces/matlab/interface/+helics/helicsCreateQuery.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsCreateQuery(varargin)
[varargout{1:nargout}] = helicsMEX(156, varargin{:});
[varargout{1:nargout}] = helicsMEX(159, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointClearMessages(varargin)
[varargout{1:nargout}] = helicsMEX(271, varargin{:});
[varargout{1:nargout}] = helicsMEX(276, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointCreateMessageObject(varargin)
[varargout{1:nargout}] = helicsMEX(266, varargin{:});
[varargout{1:nargout}] = helicsMEX(271, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetDefaultDestination(varargin)
[varargout{1:nargout}] = helicsMEX(253, varargin{:});
[varargout{1:nargout}] = helicsMEX(256, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetInfo(varargin)
[varargout{1:nargout}] = helicsMEX(275, varargin{:});
[varargout{1:nargout}] = helicsMEX(280, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetMessage(varargin)
[varargout{1:nargout}] = helicsMEX(264, varargin{:});
[varargout{1:nargout}] = helicsMEX(269, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetMessageObject(varargin)
[varargout{1:nargout}] = helicsMEX(265, varargin{:});
[varargout{1:nargout}] = helicsMEX(270, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetName(varargin)
[varargout{1:nargout}] = helicsMEX(273, varargin{:});
[varargout{1:nargout}] = helicsMEX(278, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetOption(varargin)
[varargout{1:nargout}] = helicsMEX(278, varargin{:});
[varargout{1:nargout}] = helicsMEX(283, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointGetType(varargin)
[varargout{1:nargout}] = helicsMEX(272, varargin{:});
[varargout{1:nargout}] = helicsMEX(277, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointHasMessage(varargin)
[varargout{1:nargout}] = helicsMEX(261, varargin{:});
[varargout{1:nargout}] = helicsMEX(264, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointIsValid(varargin)
[varargout{1:nargout}] = helicsMEX(251, varargin{:});
[varargout{1:nargout}] = helicsMEX(254, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function varargout = helicsEndpointPendingMessageCount(varargin)
[varargout{1:nargout}] = helicsMEX(268, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointPendingMessages(varargin)
[varargout{1:nargout}] = helicsMEX(263, varargin{:});
[varargout{1:nargout}] = helicsMEX(267, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSendEventRaw(varargin)
[varargout{1:nargout}] = helicsMEX(255, varargin{:});
[varargout{1:nargout}] = helicsMEX(258, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSendMessage(varargin)
[varargout{1:nargout}] = helicsMEX(256, varargin{:});
[varargout{1:nargout}] = helicsMEX(259, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSendMessageObject(varargin)
[varargout{1:nargout}] = helicsMEX(257, varargin{:});
[varargout{1:nargout}] = helicsMEX(260, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSendMessageObjectZeroCopy(varargin)
[varargout{1:nargout}] = helicsMEX(258, varargin{:});
[varargout{1:nargout}] = helicsMEX(261, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSendMessageRaw(varargin)
[varargout{1:nargout}] = helicsMEX(254, varargin{:});
[varargout{1:nargout}] = helicsMEX(257, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSetDefaultDestination(varargin)
[varargout{1:nargout}] = helicsMEX(252, varargin{:});
[varargout{1:nargout}] = helicsMEX(255, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSetInfo(varargin)
[varargout{1:nargout}] = helicsMEX(276, varargin{:});
[varargout{1:nargout}] = helicsMEX(281, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSetOption(varargin)
[varargout{1:nargout}] = helicsMEX(277, varargin{:});
[varargout{1:nargout}] = helicsMEX(282, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsEndpointSubscribe(varargin)
[varargout{1:nargout}] = helicsMEX(259, varargin{:});
[varargout{1:nargout}] = helicsMEX(262, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsFederateAddDependency(varargin)
[varargout{1:nargout}] = helicsMEX(141, varargin{:});
[varargout{1:nargout}] = helicsMEX(144, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsFederateClearMessages(varargin)
[varargout{1:nargout}] = helicsMEX(270, varargin{:});
[varargout{1:nargout}] = helicsMEX(275, varargin{:});
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function varargout = helicsFederateClearUpdates(varargin)
[varargout{1:nargout}] = helicsMEX(182, varargin{:});
[varargout{1:nargout}] = helicsMEX(185, varargin{:});
end
Loading

0 comments on commit 0b2111b

Please sign in to comment.