Skip to content

Commit

Permalink
Merge pull request #2507 from GMLC-TDC/interface-gen/update-main
Browse files Browse the repository at this point in the history
Automated update to generated interface files
  • Loading branch information
phlptp authored Jan 20, 2023
2 parents 9042367 + ab65509 commit 0e9632e
Show file tree
Hide file tree
Showing 26 changed files with 8,017 additions and 4,278 deletions.
3 changes: 2 additions & 1 deletion interfaces/java/interface/HelicsCoreFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/
public final class HelicsCoreFlags {
/**
* used to delay a core from entering initialization mode even if it would otherwise be ready
* used to delay a core from entering initialization mode even if it would otherwise<br>
* be ready
*/
public final static HelicsCoreFlags HELICS_FLAG_DELAY_INIT_ENTRY = new HelicsCoreFlags("HELICS_FLAG_DELAY_INIT_ENTRY", helicsJNI.HELICS_FLAG_DELAY_INIT_ENTRY_get());
/**
Expand Down
18 changes: 10 additions & 8 deletions interfaces/java/interface/HelicsCoreTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ public final class HelicsCoreTypes {
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_TEST = new HelicsCoreTypes("HELICS_CORE_TYPE_TEST", helicsJNI.HELICS_CORE_TYPE_TEST_get());
/**
* interprocess uses memory mapped files to transfer data (for use when all federates are<br>
* on the same machine
* interprocess uses memory mapped files to transfer data (for use when all<br>
* federates are on the same machine
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_INTERPROCESS = new HelicsCoreTypes("HELICS_CORE_TYPE_INTERPROCESS", helicsJNI.HELICS_CORE_TYPE_INTERPROCESS_get());
/**
* interprocess uses memory mapped files to transfer data (for use when all federates are<br>
* on the same machine ipc is the same as /ref HELICS_CORE_TYPE_interprocess
* interprocess uses memory mapped files to transfer data (for use when all<br>
* federates are on the same machine ipc is the same as /ref<br>
* HELICS_CORE_TYPE_interprocess
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_IPC = new HelicsCoreTypes("HELICS_CORE_TYPE_IPC", helicsJNI.HELICS_CORE_TYPE_IPC_get());
/**
Expand Down Expand Up @@ -68,17 +69,18 @@ public final class HelicsCoreTypes {
public final static HelicsCoreTypes HELICS_CORE_TYPE_WEBSOCKET = new HelicsCoreTypes("HELICS_CORE_TYPE_WEBSOCKET", helicsJNI.HELICS_CORE_TYPE_WEBSOCKET_get());
/**
* an in process core type for handling communications in shared<br>
* memory it is pretty similar to the test core but stripped from<br>
* the "test" components
* memory it is pretty similar to the test core but<br>
* stripped from the "test" components
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_INPROC = new HelicsCoreTypes("HELICS_CORE_TYPE_INPROC", helicsJNI.HELICS_CORE_TYPE_INPROC_get());
/**
* an explicit core type that is recognized but explicitly doesn't<br>
* exist, for testing and a few other assorted reasons
* exist, for testing and a few other assorted reasons
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_NULL = new HelicsCoreTypes("HELICS_CORE_TYPE_NULL", helicsJNI.HELICS_CORE_TYPE_NULL_get());
/**
* an explicit core type exists but does nothing but return empty values or sink calls
* an explicit core type exists but does nothing but return empty values or sink<br>
* calls
*/
public final static HelicsCoreTypes HELICS_CORE_TYPE_EMPTY = new HelicsCoreTypes("HELICS_CORE_TYPE_EMPTY", helicsJNI.HELICS_CORE_TYPE_EMPTY_get());

Expand Down
6 changes: 5 additions & 1 deletion interfaces/java/interface/HelicsDataTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public final class HelicsDataTypes {
* time data type
*/
public final static HelicsDataTypes HELICS_DATA_TYPE_TIME = new HelicsDataTypes("HELICS_DATA_TYPE_TIME", helicsJNI.HELICS_DATA_TYPE_TIME_get());
/**
* data type for a single character
*/
public final static HelicsDataTypes HELICS_DATA_TYPE_CHAR = new HelicsDataTypes("HELICS_DATA_TYPE_CHAR", helicsJNI.HELICS_DATA_TYPE_CHAR_get());
/**
* raw data type
*/
Expand Down Expand Up @@ -100,7 +104,7 @@ private HelicsDataTypes(String swigName, HelicsDataTypes swigEnum) {
swigNext = this.swigValue+1;
}

private static HelicsDataTypes[] swigValues = { HELICS_DATA_TYPE_UNKNOWN, HELICS_DATA_TYPE_STRING, HELICS_DATA_TYPE_DOUBLE, HELICS_DATA_TYPE_INT, HELICS_DATA_TYPE_COMPLEX, HELICS_DATA_TYPE_VECTOR, HELICS_DATA_TYPE_COMPLEX_VECTOR, HELICS_DATA_TYPE_NAMED_POINT, HELICS_DATA_TYPE_BOOLEAN, HELICS_DATA_TYPE_TIME, HELICS_DATA_TYPE_RAW, HELICS_DATA_TYPE_JSON, HELICS_DATA_TYPE_MULTI, HELICS_DATA_TYPE_ANY };
private static HelicsDataTypes[] swigValues = { HELICS_DATA_TYPE_UNKNOWN, HELICS_DATA_TYPE_STRING, HELICS_DATA_TYPE_DOUBLE, HELICS_DATA_TYPE_INT, HELICS_DATA_TYPE_COMPLEX, HELICS_DATA_TYPE_VECTOR, HELICS_DATA_TYPE_COMPLEX_VECTOR, HELICS_DATA_TYPE_NAMED_POINT, HELICS_DATA_TYPE_BOOLEAN, HELICS_DATA_TYPE_TIME, HELICS_DATA_TYPE_CHAR, HELICS_DATA_TYPE_RAW, HELICS_DATA_TYPE_JSON, HELICS_DATA_TYPE_MULTI, HELICS_DATA_TYPE_ANY };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
Expand Down
14 changes: 9 additions & 5 deletions interfaces/java/interface/HelicsErrorTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public final class HelicsErrorTypes {
* user code generated exception
*/
public final static HelicsErrorTypes HELICS_USER_EXCEPTION = new HelicsErrorTypes("HELICS_USER_EXCEPTION", helicsJNI.HELICS_USER_EXCEPTION_get());
/**
* user system abort
*/
public final static HelicsErrorTypes HELICS_ERROR_USER_ABORT = new HelicsErrorTypes("HELICS_ERROR_USER_ABORT", helicsJNI.HELICS_ERROR_USER_ABORT_get());
/**
* insufficient space is available to store requested data
*/
Expand Down Expand Up @@ -80,6 +76,14 @@ public final class HelicsErrorTypes {
* the function executed successfully
*/
public final static HelicsErrorTypes HELICS_OK = new HelicsErrorTypes("HELICS_OK", helicsJNI.HELICS_OK_get());
/**
* user system abort to match typical SIGINT value
*/
public final static HelicsErrorTypes HELICS_ERROR_USER_ABORT = new HelicsErrorTypes("HELICS_ERROR_USER_ABORT", helicsJNI.HELICS_ERROR_USER_ABORT_get());
/**
* force termination to match typical SIGKILL value
*/
public final static HelicsErrorTypes HELICS_ERROR_TERMINATED = new HelicsErrorTypes("HELICS_ERROR_TERMINATED", helicsJNI.HELICS_ERROR_TERMINATED_get());

public final int swigValue() {
return swigValue;
Expand Down Expand Up @@ -115,7 +119,7 @@ private HelicsErrorTypes(String swigName, HelicsErrorTypes swigEnum) {
swigNext = this.swigValue+1;
}

private static HelicsErrorTypes[] swigValues = { HELICS_ERROR_FATAL, HELICS_ERROR_EXTERNAL_TYPE, HELICS_ERROR_OTHER, HELICS_USER_EXCEPTION, HELICS_ERROR_USER_ABORT, HELICS_ERROR_INSUFFICIENT_SPACE, HELICS_ERROR_EXECUTION_FAILURE, HELICS_ERROR_INVALID_FUNCTION_CALL, HELICS_ERROR_INVALID_STATE_TRANSITION, HELICS_WARNING, HELICS_ERROR_SYSTEM_FAILURE, HELICS_ERROR_DISCARD, HELICS_ERROR_INVALID_ARGUMENT, HELICS_ERROR_INVALID_OBJECT, HELICS_ERROR_CONNECTION_FAILURE, HELICS_ERROR_REGISTRATION_FAILURE, HELICS_OK };
private static HelicsErrorTypes[] swigValues = { HELICS_ERROR_FATAL, HELICS_ERROR_EXTERNAL_TYPE, HELICS_ERROR_OTHER, HELICS_USER_EXCEPTION, HELICS_ERROR_INSUFFICIENT_SPACE, HELICS_ERROR_EXECUTION_FAILURE, HELICS_ERROR_INVALID_FUNCTION_CALL, HELICS_ERROR_INVALID_STATE_TRANSITION, HELICS_WARNING, HELICS_ERROR_SYSTEM_FAILURE, HELICS_ERROR_DISCARD, HELICS_ERROR_INVALID_ARGUMENT, HELICS_ERROR_INVALID_OBJECT, HELICS_ERROR_CONNECTION_FAILURE, HELICS_ERROR_REGISTRATION_FAILURE, HELICS_OK, HELICS_ERROR_USER_ABORT, HELICS_ERROR_TERMINATED };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
Expand Down
57 changes: 38 additions & 19 deletions interfaces/java/interface/HelicsFederateFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
package com.java.helics;

/**
* single character data type this is intentionally the same as string enumeration of possible federate flags
* enumeration of possible federate flags
*/
public final class HelicsFederateFlags {
/**
Expand All @@ -29,33 +29,34 @@ public final class HelicsFederateFlags {
*/
public final static HelicsFederateFlags HELICS_FLAG_SOURCE_ONLY = new HelicsFederateFlags("HELICS_FLAG_SOURCE_ONLY", helicsJNI.HELICS_FLAG_SOURCE_ONLY_get());
/**
* flag indicating a federate/interface should only transmit values if they have changed(binary<br>
* equivalence)
* flag indicating a federate/interface should only transmit values if they have<br>
* changed(binary equivalence)
*/
public final static HelicsFederateFlags HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE = new HelicsFederateFlags("HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE", helicsJNI.HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE_get());
/**
* flag indicating a federate/interface should only trigger an update if a value has changed<br>
* (binary equivalence)
* flag indicating a federate/interface should only trigger an update if a value has<br>
* changed (binary equivalence)
*/
public final static HelicsFederateFlags HELICS_FLAG_ONLY_UPDATE_ON_CHANGE = new HelicsFederateFlags("HELICS_FLAG_ONLY_UPDATE_ON_CHANGE", helicsJNI.HELICS_FLAG_ONLY_UPDATE_ON_CHANGE_get());
/**
* flag indicating a federate should only grant time if all other federates have already passed<br>
* the requested time
* flag indicating a federate should only grant time if all other federates have<br>
* already passed the requested time
*/
public final static HelicsFederateFlags HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE = new HelicsFederateFlags("HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE", helicsJNI.HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE_get());
/**
* flag indicating a federate should operate on a restrictive time policy, which disallows some<br>
* 2nd order time evaluation and can be useful for certain types of dependency cycles<br>
* and update patterns, but generally shouldn't be used as it can lead to some very slow update<br>
* conditions
* flag indicating a federate should operate on a restrictive time policy, which<br>
* disallows some 2nd order time evaluation and can be useful for certain types of<br>
* dependency cycles and update patterns, but generally shouldn't be used as it can<br>
* lead to some very slow update conditions
*/
public final static HelicsFederateFlags HELICS_FLAG_RESTRICTIVE_TIME_POLICY = new HelicsFederateFlags("HELICS_FLAG_RESTRICTIVE_TIME_POLICY", helicsJNI.HELICS_FLAG_RESTRICTIVE_TIME_POLICY_get());
/**
* flag indicating that a federate has rollback capability
*/
public final static HelicsFederateFlags HELICS_FLAG_ROLLBACK = new HelicsFederateFlags("HELICS_FLAG_ROLLBACK", helicsJNI.HELICS_FLAG_ROLLBACK_get());
/**
* flag indicating that a federate performs forward computation and does internal rollback
* flag indicating that a federate performs forward computation and does internal<br>
* rollback
*/
public final static HelicsFederateFlags HELICS_FLAG_FORWARD_COMPUTE = new HelicsFederateFlags("HELICS_FLAG_FORWARD_COMPUTE", helicsJNI.HELICS_FLAG_FORWARD_COMPUTE_get());
/**
Expand All @@ -66,29 +67,47 @@ public final class HelicsFederateFlags {
* flag indicating that the federate will only interact on a single thread
*/
public final static HelicsFederateFlags HELICS_FLAG_SINGLE_THREAD_FEDERATE = new HelicsFederateFlags("HELICS_FLAG_SINGLE_THREAD_FEDERATE", helicsJNI.HELICS_FLAG_SINGLE_THREAD_FEDERATE_get());
/**
* flag indicating use of a thread safe core
*/
public final static HelicsFederateFlags HELICS_FLAG_MULTI_THREAD_CORE = new HelicsFederateFlags("HELICS_FLAG_MULTI_THREAD_CORE", helicsJNI.HELICS_FLAG_MULTI_THREAD_CORE_get());
/**
* flag indicating use of a single threaded core
*/
public final static HelicsFederateFlags HELICS_FLAG_SINGLE_THREAD_CORE = new HelicsFederateFlags("HELICS_FLAG_SINGLE_THREAD_CORE", helicsJNI.HELICS_FLAG_SINGLE_THREAD_CORE_get());
/**
* used to not display warnings on mismatched requested times
*/
public final static HelicsFederateFlags HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS = new HelicsFederateFlags("HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS", helicsJNI.HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS_get());
/**
* specify that checking on configuration files should be strict and throw and error on any<br>
* invalid values
* specify that checking on configuration files should be strict and throw and error<br>
* on any invalid values
*/
public final static HelicsFederateFlags HELICS_FLAG_STRICT_CONFIG_CHECKING = new HelicsFederateFlags("HELICS_FLAG_STRICT_CONFIG_CHECKING", helicsJNI.HELICS_FLAG_STRICT_CONFIG_CHECKING_get());
/**
* specify that the federate should use json serialization for all data types
*/
public final static HelicsFederateFlags HELICS_FLAG_USE_JSON_SERIALIZATION = new HelicsFederateFlags("HELICS_FLAG_USE_JSON_SERIALIZATION", helicsJNI.HELICS_FLAG_USE_JSON_SERIALIZATION_get());
/**
* specify that the federate is event triggered-meaning (all/most) events are triggered by<br>
* incoming events
* specify that the federate is event triggered-meaning (all/most) events are<br>
* triggered by incoming events
*/
public final static HelicsFederateFlags HELICS_FLAG_EVENT_TRIGGERED = new HelicsFederateFlags("HELICS_FLAG_EVENT_TRIGGERED", helicsJNI.HELICS_FLAG_EVENT_TRIGGERED_get());
/**
* specify that that federate should capture the profiling data to the local federate logging<br>
* system
* specify that that federate should capture the profiling data to the local<br>
* federate logging system
*/
public final static HelicsFederateFlags HELICS_FLAG_LOCAL_PROFILING_CAPTURE = new HelicsFederateFlags("HELICS_FLAG_LOCAL_PROFILING_CAPTURE", helicsJNI.HELICS_FLAG_LOCAL_PROFILING_CAPTURE_get());
/**
* specify that the federate is a callback based federate using callbacks for<br>
* execution
*/
public final static HelicsFederateFlags HELICS_FLAG_CALLBACK_FEDERATE = new HelicsFederateFlags("HELICS_FLAG_CALLBACK_FEDERATE", helicsJNI.HELICS_FLAG_CALLBACK_FEDERATE_get());
/**
* specify that a federate should automatically call timeRequest on completion of<br>
* current request
*/
public final static HelicsFederateFlags HELICS_FLAG_AUTOMATED_TIME_REQUEST = new HelicsFederateFlags("HELICS_FLAG_AUTOMATED_TIME_REQUEST", helicsJNI.HELICS_FLAG_AUTOMATED_TIME_REQUEST_get());

public final int swigValue() {
return swigValue;
Expand Down Expand Up @@ -124,7 +143,7 @@ private HelicsFederateFlags(String swigName, HelicsFederateFlags swigEnum) {
swigNext = this.swigValue+1;
}

private static HelicsFederateFlags[] swigValues = { HELICS_FLAG_OBSERVER, HELICS_FLAG_UNINTERRUPTIBLE, HELICS_FLAG_INTERRUPTIBLE, HELICS_FLAG_SOURCE_ONLY, HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE, HELICS_FLAG_ONLY_UPDATE_ON_CHANGE, HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE, HELICS_FLAG_RESTRICTIVE_TIME_POLICY, HELICS_FLAG_ROLLBACK, HELICS_FLAG_FORWARD_COMPUTE, HELICS_FLAG_REALTIME, HELICS_FLAG_SINGLE_THREAD_FEDERATE, HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS, HELICS_FLAG_STRICT_CONFIG_CHECKING, HELICS_FLAG_USE_JSON_SERIALIZATION, HELICS_FLAG_EVENT_TRIGGERED, HELICS_FLAG_LOCAL_PROFILING_CAPTURE };
private static HelicsFederateFlags[] swigValues = { HELICS_FLAG_OBSERVER, HELICS_FLAG_UNINTERRUPTIBLE, HELICS_FLAG_INTERRUPTIBLE, HELICS_FLAG_SOURCE_ONLY, HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE, HELICS_FLAG_ONLY_UPDATE_ON_CHANGE, HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE, HELICS_FLAG_RESTRICTIVE_TIME_POLICY, HELICS_FLAG_ROLLBACK, HELICS_FLAG_FORWARD_COMPUTE, HELICS_FLAG_REALTIME, HELICS_FLAG_SINGLE_THREAD_FEDERATE, HELICS_FLAG_MULTI_THREAD_CORE, HELICS_FLAG_SINGLE_THREAD_CORE, HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS, HELICS_FLAG_STRICT_CONFIG_CHECKING, HELICS_FLAG_USE_JSON_SERIALIZATION, HELICS_FLAG_EVENT_TRIGGERED, HELICS_FLAG_LOCAL_PROFILING_CAPTURE, HELICS_FLAG_CALLBACK_FEDERATE, HELICS_FLAG_AUTOMATED_TIME_REQUEST };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
Expand Down
5 changes: 3 additions & 2 deletions interfaces/java/interface/HelicsFederateState.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
* enumeration of possible federate states
*/
public final class HelicsFederateState {
public final static HelicsFederateState HELICS_STATE_UNKNOWN = new HelicsFederateState("HELICS_STATE_UNKNOWN", helicsJNI.HELICS_STATE_UNKNOWN_get());
/**
* when created the federate is in startup state
* used when no information is available about the federate state when created the federate is in startup state
*/
public final static HelicsFederateState HELICS_STATE_STARTUP = new HelicsFederateState("HELICS_STATE_STARTUP", helicsJNI.HELICS_STATE_STARTUP_get());
/**
Expand Down Expand Up @@ -91,7 +92,7 @@ private HelicsFederateState(String swigName, HelicsFederateState swigEnum) {
swigNext = this.swigValue+1;
}

private static HelicsFederateState[] swigValues = { HELICS_STATE_STARTUP, HELICS_STATE_INITIALIZATION, HELICS_STATE_EXECUTION, HELICS_STATE_FINALIZE, HELICS_STATE_ERROR, HELICS_STATE_PENDING_INIT, HELICS_STATE_PENDING_EXEC, HELICS_STATE_PENDING_TIME, HELICS_STATE_PENDING_ITERATIVE_TIME, HELICS_STATE_PENDING_FINALIZE, HELICS_STATE_FINISHED };
private static HelicsFederateState[] swigValues = { HELICS_STATE_UNKNOWN, HELICS_STATE_STARTUP, HELICS_STATE_INITIALIZATION, HELICS_STATE_EXECUTION, HELICS_STATE_FINALIZE, HELICS_STATE_ERROR, HELICS_STATE_PENDING_INIT, HELICS_STATE_PENDING_EXEC, HELICS_STATE_PENDING_TIME, HELICS_STATE_PENDING_ITERATIVE_TIME, HELICS_STATE_PENDING_FINALIZE, HELICS_STATE_FINISHED };
private static int swigNext = 0;
private final int swigValue;
private final String swigName;
Expand Down
9 changes: 5 additions & 4 deletions interfaces/java/interface/HelicsFilterTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ public final class HelicsFilterTypes {
public final static HelicsFilterTypes HELICS_FILTER_TYPE_RANDOM_DROP = new HelicsFilterTypes("HELICS_FILTER_TYPE_RANDOM_DROP", helicsJNI.HELICS_FILTER_TYPE_RANDOM_DROP_get());
/**
* a filter type that reroutes a message to a different destination than originally<br>
* specified
* specified
*/
public final static HelicsFilterTypes HELICS_FILTER_TYPE_REROUTE = new HelicsFilterTypes("HELICS_FILTER_TYPE_REROUTE", helicsJNI.HELICS_FILTER_TYPE_REROUTE_get());
/**
* a filter type that duplicates a message and sends the copy to a different destination
* a filter type that duplicates a message and sends the copy to a different<br>
* destination
*/
public final static HelicsFilterTypes HELICS_FILTER_TYPE_CLONE = new HelicsFilterTypes("HELICS_FILTER_TYPE_CLONE", helicsJNI.HELICS_FILTER_TYPE_CLONE_get());
/**
* a customizable filter type that can perform different actions on a message based on<br>
* firewall like rules
* a customizable filter type that can perform different actions on a message based<br>
* on firewall like rules
*/
public final static HelicsFilterTypes HELICS_FILTER_TYPE_FIREWALL = new HelicsFilterTypes("HELICS_FILTER_TYPE_FIREWALL", helicsJNI.HELICS_FILTER_TYPE_FIREWALL_get());

Expand Down
Loading

0 comments on commit 0e9632e

Please sign in to comment.