org.apache.airavata.model.experiment.ExperimentModel Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.airavata.model.experiment;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
/**
* A structure holding the experiment metadata and its child models.
*
* userName:
* The user name of the targeted gateway end user on whose behalf the experiment is being created.
* the associated gateway identity can only be inferred from the security hand-shake so as to avoid
* authorized Airavata Clients mimicking an unauthorized request. If a gateway is not registered with
* Airavata, an authorization exception is thrown.
*
* experimentName:
* The name of the experiment as defined by the user. The name need not be unique as uniqueness is enforced
* by the generated experiment id.
*
* experimentDescription:
* The verbose description of the experiment. This is an optional parameter.
*/
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-07-13")
public class ExperimentModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentModel");
private static final org.apache.thrift.protocol.TField EXPERIMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField EXPERIMENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentType", org.apache.thrift.protocol.TType.I32, (short)4);
private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField EXPERIMENT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentName", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField CREATION_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTime", org.apache.thrift.protocol.TType.I64, (short)7);
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField EXECUTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("executionId", org.apache.thrift.protocol.TType.STRING, (short)9);
private static final org.apache.thrift.protocol.TField GATEWAY_EXECUTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayExecutionId", org.apache.thrift.protocol.TType.STRING, (short)10);
private static final org.apache.thrift.protocol.TField GATEWAY_INSTANCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayInstanceId", org.apache.thrift.protocol.TType.STRING, (short)11);
private static final org.apache.thrift.protocol.TField ENABLE_EMAIL_NOTIFICATION_FIELD_DESC = new org.apache.thrift.protocol.TField("enableEmailNotification", org.apache.thrift.protocol.TType.BOOL, (short)12);
private static final org.apache.thrift.protocol.TField EMAIL_ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("emailAddresses", org.apache.thrift.protocol.TType.LIST, (short)13);
private static final org.apache.thrift.protocol.TField USER_CONFIGURATION_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("userConfigurationData", org.apache.thrift.protocol.TType.STRUCT, (short)14);
private static final org.apache.thrift.protocol.TField EXPERIMENT_INPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentInputs", org.apache.thrift.protocol.TType.LIST, (short)15);
private static final org.apache.thrift.protocol.TField EXPERIMENT_OUTPUTS_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentOutputs", org.apache.thrift.protocol.TType.LIST, (short)16);
private static final org.apache.thrift.protocol.TField EXPERIMENT_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentStatus", org.apache.thrift.protocol.TType.STRUCT, (short)17);
private static final org.apache.thrift.protocol.TField ERRORS_FIELD_DESC = new org.apache.thrift.protocol.TField("errors", org.apache.thrift.protocol.TType.LIST, (short)18);
private static final org.apache.thrift.protocol.TField PROCESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("processes", org.apache.thrift.protocol.TType.LIST, (short)19);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new ExperimentModelStandardSchemeFactory());
schemes.put(TupleScheme.class, new ExperimentModelTupleSchemeFactory());
}
private String experimentId; // required
private String projectId; // required
private String gatewayId; // required
private ExperimentType experimentType; // required
private String userName; // required
private String experimentName; // required
private long creationTime; // optional
private String description; // optional
private String executionId; // optional
private String gatewayExecutionId; // optional
private String gatewayInstanceId; // optional
private boolean enableEmailNotification; // optional
private List emailAddresses; // optional
private UserConfigurationDataModel userConfigurationData; // optional
private List experimentInputs; // optional
private List experimentOutputs; // optional
private org.apache.airavata.model.status.ExperimentStatus experimentStatus; // optional
private List errors; // optional
private List processes; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
EXPERIMENT_ID((short)1, "experimentId"),
PROJECT_ID((short)2, "projectId"),
GATEWAY_ID((short)3, "gatewayId"),
/**
*
* @see ExperimentType
*/
EXPERIMENT_TYPE((short)4, "experimentType"),
USER_NAME((short)5, "userName"),
EXPERIMENT_NAME((short)6, "experimentName"),
CREATION_TIME((short)7, "creationTime"),
DESCRIPTION((short)8, "description"),
EXECUTION_ID((short)9, "executionId"),
GATEWAY_EXECUTION_ID((short)10, "gatewayExecutionId"),
GATEWAY_INSTANCE_ID((short)11, "gatewayInstanceId"),
ENABLE_EMAIL_NOTIFICATION((short)12, "enableEmailNotification"),
EMAIL_ADDRESSES((short)13, "emailAddresses"),
USER_CONFIGURATION_DATA((short)14, "userConfigurationData"),
EXPERIMENT_INPUTS((short)15, "experimentInputs"),
EXPERIMENT_OUTPUTS((short)16, "experimentOutputs"),
EXPERIMENT_STATUS((short)17, "experimentStatus"),
ERRORS((short)18, "errors"),
PROCESSES((short)19, "processes");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EXPERIMENT_ID
return EXPERIMENT_ID;
case 2: // PROJECT_ID
return PROJECT_ID;
case 3: // GATEWAY_ID
return GATEWAY_ID;
case 4: // EXPERIMENT_TYPE
return EXPERIMENT_TYPE;
case 5: // USER_NAME
return USER_NAME;
case 6: // EXPERIMENT_NAME
return EXPERIMENT_NAME;
case 7: // CREATION_TIME
return CREATION_TIME;
case 8: // DESCRIPTION
return DESCRIPTION;
case 9: // EXECUTION_ID
return EXECUTION_ID;
case 10: // GATEWAY_EXECUTION_ID
return GATEWAY_EXECUTION_ID;
case 11: // GATEWAY_INSTANCE_ID
return GATEWAY_INSTANCE_ID;
case 12: // ENABLE_EMAIL_NOTIFICATION
return ENABLE_EMAIL_NOTIFICATION;
case 13: // EMAIL_ADDRESSES
return EMAIL_ADDRESSES;
case 14: // USER_CONFIGURATION_DATA
return USER_CONFIGURATION_DATA;
case 15: // EXPERIMENT_INPUTS
return EXPERIMENT_INPUTS;
case 16: // EXPERIMENT_OUTPUTS
return EXPERIMENT_OUTPUTS;
case 17: // EXPERIMENT_STATUS
return EXPERIMENT_STATUS;
case 18: // ERRORS
return ERRORS;
case 19: // PROCESSES
return PROCESSES;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __CREATIONTIME_ISSET_ID = 0;
private static final int __ENABLEEMAILNOTIFICATION_ISSET_ID = 1;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.CREATION_TIME,_Fields.DESCRIPTION,_Fields.EXECUTION_ID,_Fields.GATEWAY_EXECUTION_ID,_Fields.GATEWAY_INSTANCE_ID,_Fields.ENABLE_EMAIL_NOTIFICATION,_Fields.EMAIL_ADDRESSES,_Fields.USER_CONFIGURATION_DATA,_Fields.EXPERIMENT_INPUTS,_Fields.EXPERIMENT_OUTPUTS,_Fields.EXPERIMENT_STATUS,_Fields.ERRORS,_Fields.PROCESSES};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.EXPERIMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("experimentId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXPERIMENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("experimentType", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExperimentType.class)));
tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXPERIMENT_NAME, new org.apache.thrift.meta_data.FieldMetaData("experimentName", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CREATION_TIME, new org.apache.thrift.meta_data.FieldMetaData("creationTime", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXECUTION_ID, new org.apache.thrift.meta_data.FieldMetaData("executionId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.GATEWAY_EXECUTION_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayExecutionId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.GATEWAY_INSTANCE_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayInstanceId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.ENABLE_EMAIL_NOTIFICATION, new org.apache.thrift.meta_data.FieldMetaData("enableEmailNotification", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.EMAIL_ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("emailAddresses", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.USER_CONFIGURATION_DATA, new org.apache.thrift.meta_data.FieldMetaData("userConfigurationData", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserConfigurationDataModel.class)));
tmpMap.put(_Fields.EXPERIMENT_INPUTS, new org.apache.thrift.meta_data.FieldMetaData("experimentInputs", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.application.io.InputDataObjectType.class))));
tmpMap.put(_Fields.EXPERIMENT_OUTPUTS, new org.apache.thrift.meta_data.FieldMetaData("experimentOutputs", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.application.io.OutputDataObjectType.class))));
tmpMap.put(_Fields.EXPERIMENT_STATUS, new org.apache.thrift.meta_data.FieldMetaData("experimentStatus", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.status.ExperimentStatus.class)));
tmpMap.put(_Fields.ERRORS, new org.apache.thrift.meta_data.FieldMetaData("errors", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.commons.ErrorModel.class))));
tmpMap.put(_Fields.PROCESSES, new org.apache.thrift.meta_data.FieldMetaData("processes", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.process.ProcessModel.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExperimentModel.class, metaDataMap);
}
public ExperimentModel() {
this.experimentId = "DO_NOT_SET_AT_CLIENTS";
this.experimentType = org.apache.airavata.model.experiment.ExperimentType.SINGLE_APPLICATION;
}
public ExperimentModel(
String experimentId,
String projectId,
String gatewayId,
ExperimentType experimentType,
String userName,
String experimentName)
{
this();
this.experimentId = experimentId;
this.projectId = projectId;
this.gatewayId = gatewayId;
this.experimentType = experimentType;
this.userName = userName;
this.experimentName = experimentName;
}
/**
* Performs a deep copy on other.
*/
public ExperimentModel(ExperimentModel other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetExperimentId()) {
this.experimentId = other.experimentId;
}
if (other.isSetProjectId()) {
this.projectId = other.projectId;
}
if (other.isSetGatewayId()) {
this.gatewayId = other.gatewayId;
}
if (other.isSetExperimentType()) {
this.experimentType = other.experimentType;
}
if (other.isSetUserName()) {
this.userName = other.userName;
}
if (other.isSetExperimentName()) {
this.experimentName = other.experimentName;
}
this.creationTime = other.creationTime;
if (other.isSetDescription()) {
this.description = other.description;
}
if (other.isSetExecutionId()) {
this.executionId = other.executionId;
}
if (other.isSetGatewayExecutionId()) {
this.gatewayExecutionId = other.gatewayExecutionId;
}
if (other.isSetGatewayInstanceId()) {
this.gatewayInstanceId = other.gatewayInstanceId;
}
this.enableEmailNotification = other.enableEmailNotification;
if (other.isSetEmailAddresses()) {
List __this__emailAddresses = new ArrayList(other.emailAddresses);
this.emailAddresses = __this__emailAddresses;
}
if (other.isSetUserConfigurationData()) {
this.userConfigurationData = new UserConfigurationDataModel(other.userConfigurationData);
}
if (other.isSetExperimentInputs()) {
List __this__experimentInputs = new ArrayList(other.experimentInputs.size());
for (org.apache.airavata.model.application.io.InputDataObjectType other_element : other.experimentInputs) {
__this__experimentInputs.add(new org.apache.airavata.model.application.io.InputDataObjectType(other_element));
}
this.experimentInputs = __this__experimentInputs;
}
if (other.isSetExperimentOutputs()) {
List __this__experimentOutputs = new ArrayList(other.experimentOutputs.size());
for (org.apache.airavata.model.application.io.OutputDataObjectType other_element : other.experimentOutputs) {
__this__experimentOutputs.add(new org.apache.airavata.model.application.io.OutputDataObjectType(other_element));
}
this.experimentOutputs = __this__experimentOutputs;
}
if (other.isSetExperimentStatus()) {
this.experimentStatus = new org.apache.airavata.model.status.ExperimentStatus(other.experimentStatus);
}
if (other.isSetErrors()) {
List __this__errors = new ArrayList(other.errors.size());
for (org.apache.airavata.model.commons.ErrorModel other_element : other.errors) {
__this__errors.add(new org.apache.airavata.model.commons.ErrorModel(other_element));
}
this.errors = __this__errors;
}
if (other.isSetProcesses()) {
List __this__processes = new ArrayList(other.processes.size());
for (org.apache.airavata.model.process.ProcessModel other_element : other.processes) {
__this__processes.add(new org.apache.airavata.model.process.ProcessModel(other_element));
}
this.processes = __this__processes;
}
}
public ExperimentModel deepCopy() {
return new ExperimentModel(this);
}
@Override
public void clear() {
this.experimentId = "DO_NOT_SET_AT_CLIENTS";
this.projectId = null;
this.gatewayId = null;
this.experimentType = org.apache.airavata.model.experiment.ExperimentType.SINGLE_APPLICATION;
this.userName = null;
this.experimentName = null;
setCreationTimeIsSet(false);
this.creationTime = 0;
this.description = null;
this.executionId = null;
this.gatewayExecutionId = null;
this.gatewayInstanceId = null;
setEnableEmailNotificationIsSet(false);
this.enableEmailNotification = false;
this.emailAddresses = null;
this.userConfigurationData = null;
this.experimentInputs = null;
this.experimentOutputs = null;
this.experimentStatus = null;
this.errors = null;
this.processes = null;
}
public String getExperimentId() {
return this.experimentId;
}
public void setExperimentId(String experimentId) {
this.experimentId = experimentId;
}
public void unsetExperimentId() {
this.experimentId = null;
}
/** Returns true if field experimentId is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentId() {
return this.experimentId != null;
}
public void setExperimentIdIsSet(boolean value) {
if (!value) {
this.experimentId = null;
}
}
public String getProjectId() {
return this.projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public void unsetProjectId() {
this.projectId = null;
}
/** Returns true if field projectId is set (has been assigned a value) and false otherwise */
public boolean isSetProjectId() {
return this.projectId != null;
}
public void setProjectIdIsSet(boolean value) {
if (!value) {
this.projectId = null;
}
}
public String getGatewayId() {
return this.gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public void unsetGatewayId() {
this.gatewayId = null;
}
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
public boolean isSetGatewayId() {
return this.gatewayId != null;
}
public void setGatewayIdIsSet(boolean value) {
if (!value) {
this.gatewayId = null;
}
}
/**
*
* @see ExperimentType
*/
public ExperimentType getExperimentType() {
return this.experimentType;
}
/**
*
* @see ExperimentType
*/
public void setExperimentType(ExperimentType experimentType) {
this.experimentType = experimentType;
}
public void unsetExperimentType() {
this.experimentType = null;
}
/** Returns true if field experimentType is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentType() {
return this.experimentType != null;
}
public void setExperimentTypeIsSet(boolean value) {
if (!value) {
this.experimentType = null;
}
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public void unsetUserName() {
this.userName = null;
}
/** Returns true if field userName is set (has been assigned a value) and false otherwise */
public boolean isSetUserName() {
return this.userName != null;
}
public void setUserNameIsSet(boolean value) {
if (!value) {
this.userName = null;
}
}
public String getExperimentName() {
return this.experimentName;
}
public void setExperimentName(String experimentName) {
this.experimentName = experimentName;
}
public void unsetExperimentName() {
this.experimentName = null;
}
/** Returns true if field experimentName is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentName() {
return this.experimentName != null;
}
public void setExperimentNameIsSet(boolean value) {
if (!value) {
this.experimentName = null;
}
}
public long getCreationTime() {
return this.creationTime;
}
public void setCreationTime(long creationTime) {
this.creationTime = creationTime;
setCreationTimeIsSet(true);
}
public void unsetCreationTime() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CREATIONTIME_ISSET_ID);
}
/** Returns true if field creationTime is set (has been assigned a value) and false otherwise */
public boolean isSetCreationTime() {
return EncodingUtils.testBit(__isset_bitfield, __CREATIONTIME_ISSET_ID);
}
public void setCreationTimeIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CREATIONTIME_ISSET_ID, value);
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public void unsetDescription() {
this.description = null;
}
/** Returns true if field description is set (has been assigned a value) and false otherwise */
public boolean isSetDescription() {
return this.description != null;
}
public void setDescriptionIsSet(boolean value) {
if (!value) {
this.description = null;
}
}
public String getExecutionId() {
return this.executionId;
}
public void setExecutionId(String executionId) {
this.executionId = executionId;
}
public void unsetExecutionId() {
this.executionId = null;
}
/** Returns true if field executionId is set (has been assigned a value) and false otherwise */
public boolean isSetExecutionId() {
return this.executionId != null;
}
public void setExecutionIdIsSet(boolean value) {
if (!value) {
this.executionId = null;
}
}
public String getGatewayExecutionId() {
return this.gatewayExecutionId;
}
public void setGatewayExecutionId(String gatewayExecutionId) {
this.gatewayExecutionId = gatewayExecutionId;
}
public void unsetGatewayExecutionId() {
this.gatewayExecutionId = null;
}
/** Returns true if field gatewayExecutionId is set (has been assigned a value) and false otherwise */
public boolean isSetGatewayExecutionId() {
return this.gatewayExecutionId != null;
}
public void setGatewayExecutionIdIsSet(boolean value) {
if (!value) {
this.gatewayExecutionId = null;
}
}
public String getGatewayInstanceId() {
return this.gatewayInstanceId;
}
public void setGatewayInstanceId(String gatewayInstanceId) {
this.gatewayInstanceId = gatewayInstanceId;
}
public void unsetGatewayInstanceId() {
this.gatewayInstanceId = null;
}
/** Returns true if field gatewayInstanceId is set (has been assigned a value) and false otherwise */
public boolean isSetGatewayInstanceId() {
return this.gatewayInstanceId != null;
}
public void setGatewayInstanceIdIsSet(boolean value) {
if (!value) {
this.gatewayInstanceId = null;
}
}
public boolean isEnableEmailNotification() {
return this.enableEmailNotification;
}
public void setEnableEmailNotification(boolean enableEmailNotification) {
this.enableEmailNotification = enableEmailNotification;
setEnableEmailNotificationIsSet(true);
}
public void unsetEnableEmailNotification() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLEEMAILNOTIFICATION_ISSET_ID);
}
/** Returns true if field enableEmailNotification is set (has been assigned a value) and false otherwise */
public boolean isSetEnableEmailNotification() {
return EncodingUtils.testBit(__isset_bitfield, __ENABLEEMAILNOTIFICATION_ISSET_ID);
}
public void setEnableEmailNotificationIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLEEMAILNOTIFICATION_ISSET_ID, value);
}
public int getEmailAddressesSize() {
return (this.emailAddresses == null) ? 0 : this.emailAddresses.size();
}
public java.util.Iterator getEmailAddressesIterator() {
return (this.emailAddresses == null) ? null : this.emailAddresses.iterator();
}
public void addToEmailAddresses(String elem) {
if (this.emailAddresses == null) {
this.emailAddresses = new ArrayList();
}
this.emailAddresses.add(elem);
}
public List getEmailAddresses() {
return this.emailAddresses;
}
public void setEmailAddresses(List emailAddresses) {
this.emailAddresses = emailAddresses;
}
public void unsetEmailAddresses() {
this.emailAddresses = null;
}
/** Returns true if field emailAddresses is set (has been assigned a value) and false otherwise */
public boolean isSetEmailAddresses() {
return this.emailAddresses != null;
}
public void setEmailAddressesIsSet(boolean value) {
if (!value) {
this.emailAddresses = null;
}
}
public UserConfigurationDataModel getUserConfigurationData() {
return this.userConfigurationData;
}
public void setUserConfigurationData(UserConfigurationDataModel userConfigurationData) {
this.userConfigurationData = userConfigurationData;
}
public void unsetUserConfigurationData() {
this.userConfigurationData = null;
}
/** Returns true if field userConfigurationData is set (has been assigned a value) and false otherwise */
public boolean isSetUserConfigurationData() {
return this.userConfigurationData != null;
}
public void setUserConfigurationDataIsSet(boolean value) {
if (!value) {
this.userConfigurationData = null;
}
}
public int getExperimentInputsSize() {
return (this.experimentInputs == null) ? 0 : this.experimentInputs.size();
}
public java.util.Iterator getExperimentInputsIterator() {
return (this.experimentInputs == null) ? null : this.experimentInputs.iterator();
}
public void addToExperimentInputs(org.apache.airavata.model.application.io.InputDataObjectType elem) {
if (this.experimentInputs == null) {
this.experimentInputs = new ArrayList();
}
this.experimentInputs.add(elem);
}
public List getExperimentInputs() {
return this.experimentInputs;
}
public void setExperimentInputs(List experimentInputs) {
this.experimentInputs = experimentInputs;
}
public void unsetExperimentInputs() {
this.experimentInputs = null;
}
/** Returns true if field experimentInputs is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentInputs() {
return this.experimentInputs != null;
}
public void setExperimentInputsIsSet(boolean value) {
if (!value) {
this.experimentInputs = null;
}
}
public int getExperimentOutputsSize() {
return (this.experimentOutputs == null) ? 0 : this.experimentOutputs.size();
}
public java.util.Iterator getExperimentOutputsIterator() {
return (this.experimentOutputs == null) ? null : this.experimentOutputs.iterator();
}
public void addToExperimentOutputs(org.apache.airavata.model.application.io.OutputDataObjectType elem) {
if (this.experimentOutputs == null) {
this.experimentOutputs = new ArrayList();
}
this.experimentOutputs.add(elem);
}
public List getExperimentOutputs() {
return this.experimentOutputs;
}
public void setExperimentOutputs(List experimentOutputs) {
this.experimentOutputs = experimentOutputs;
}
public void unsetExperimentOutputs() {
this.experimentOutputs = null;
}
/** Returns true if field experimentOutputs is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentOutputs() {
return this.experimentOutputs != null;
}
public void setExperimentOutputsIsSet(boolean value) {
if (!value) {
this.experimentOutputs = null;
}
}
public org.apache.airavata.model.status.ExperimentStatus getExperimentStatus() {
return this.experimentStatus;
}
public void setExperimentStatus(org.apache.airavata.model.status.ExperimentStatus experimentStatus) {
this.experimentStatus = experimentStatus;
}
public void unsetExperimentStatus() {
this.experimentStatus = null;
}
/** Returns true if field experimentStatus is set (has been assigned a value) and false otherwise */
public boolean isSetExperimentStatus() {
return this.experimentStatus != null;
}
public void setExperimentStatusIsSet(boolean value) {
if (!value) {
this.experimentStatus = null;
}
}
public int getErrorsSize() {
return (this.errors == null) ? 0 : this.errors.size();
}
public java.util.Iterator getErrorsIterator() {
return (this.errors == null) ? null : this.errors.iterator();
}
public void addToErrors(org.apache.airavata.model.commons.ErrorModel elem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(elem);
}
public List getErrors() {
return this.errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public void unsetErrors() {
this.errors = null;
}
/** Returns true if field errors is set (has been assigned a value) and false otherwise */
public boolean isSetErrors() {
return this.errors != null;
}
public void setErrorsIsSet(boolean value) {
if (!value) {
this.errors = null;
}
}
public int getProcessesSize() {
return (this.processes == null) ? 0 : this.processes.size();
}
public java.util.Iterator getProcessesIterator() {
return (this.processes == null) ? null : this.processes.iterator();
}
public void addToProcesses(org.apache.airavata.model.process.ProcessModel elem) {
if (this.processes == null) {
this.processes = new ArrayList();
}
this.processes.add(elem);
}
public List getProcesses() {
return this.processes;
}
public void setProcesses(List processes) {
this.processes = processes;
}
public void unsetProcesses() {
this.processes = null;
}
/** Returns true if field processes is set (has been assigned a value) and false otherwise */
public boolean isSetProcesses() {
return this.processes != null;
}
public void setProcessesIsSet(boolean value) {
if (!value) {
this.processes = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case EXPERIMENT_ID:
if (value == null) {
unsetExperimentId();
} else {
setExperimentId((String)value);
}
break;
case PROJECT_ID:
if (value == null) {
unsetProjectId();
} else {
setProjectId((String)value);
}
break;
case GATEWAY_ID:
if (value == null) {
unsetGatewayId();
} else {
setGatewayId((String)value);
}
break;
case EXPERIMENT_TYPE:
if (value == null) {
unsetExperimentType();
} else {
setExperimentType((ExperimentType)value);
}
break;
case USER_NAME:
if (value == null) {
unsetUserName();
} else {
setUserName((String)value);
}
break;
case EXPERIMENT_NAME:
if (value == null) {
unsetExperimentName();
} else {
setExperimentName((String)value);
}
break;
case CREATION_TIME:
if (value == null) {
unsetCreationTime();
} else {
setCreationTime((Long)value);
}
break;
case DESCRIPTION:
if (value == null) {
unsetDescription();
} else {
setDescription((String)value);
}
break;
case EXECUTION_ID:
if (value == null) {
unsetExecutionId();
} else {
setExecutionId((String)value);
}
break;
case GATEWAY_EXECUTION_ID:
if (value == null) {
unsetGatewayExecutionId();
} else {
setGatewayExecutionId((String)value);
}
break;
case GATEWAY_INSTANCE_ID:
if (value == null) {
unsetGatewayInstanceId();
} else {
setGatewayInstanceId((String)value);
}
break;
case ENABLE_EMAIL_NOTIFICATION:
if (value == null) {
unsetEnableEmailNotification();
} else {
setEnableEmailNotification((Boolean)value);
}
break;
case EMAIL_ADDRESSES:
if (value == null) {
unsetEmailAddresses();
} else {
setEmailAddresses((List)value);
}
break;
case USER_CONFIGURATION_DATA:
if (value == null) {
unsetUserConfigurationData();
} else {
setUserConfigurationData((UserConfigurationDataModel)value);
}
break;
case EXPERIMENT_INPUTS:
if (value == null) {
unsetExperimentInputs();
} else {
setExperimentInputs((List)value);
}
break;
case EXPERIMENT_OUTPUTS:
if (value == null) {
unsetExperimentOutputs();
} else {
setExperimentOutputs((List)value);
}
break;
case EXPERIMENT_STATUS:
if (value == null) {
unsetExperimentStatus();
} else {
setExperimentStatus((org.apache.airavata.model.status.ExperimentStatus)value);
}
break;
case ERRORS:
if (value == null) {
unsetErrors();
} else {
setErrors((List)value);
}
break;
case PROCESSES:
if (value == null) {
unsetProcesses();
} else {
setProcesses((List)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case EXPERIMENT_ID:
return getExperimentId();
case PROJECT_ID:
return getProjectId();
case GATEWAY_ID:
return getGatewayId();
case EXPERIMENT_TYPE:
return getExperimentType();
case USER_NAME:
return getUserName();
case EXPERIMENT_NAME:
return getExperimentName();
case CREATION_TIME:
return getCreationTime();
case DESCRIPTION:
return getDescription();
case EXECUTION_ID:
return getExecutionId();
case GATEWAY_EXECUTION_ID:
return getGatewayExecutionId();
case GATEWAY_INSTANCE_ID:
return getGatewayInstanceId();
case ENABLE_EMAIL_NOTIFICATION:
return isEnableEmailNotification();
case EMAIL_ADDRESSES:
return getEmailAddresses();
case USER_CONFIGURATION_DATA:
return getUserConfigurationData();
case EXPERIMENT_INPUTS:
return getExperimentInputs();
case EXPERIMENT_OUTPUTS:
return getExperimentOutputs();
case EXPERIMENT_STATUS:
return getExperimentStatus();
case ERRORS:
return getErrors();
case PROCESSES:
return getProcesses();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case EXPERIMENT_ID:
return isSetExperimentId();
case PROJECT_ID:
return isSetProjectId();
case GATEWAY_ID:
return isSetGatewayId();
case EXPERIMENT_TYPE:
return isSetExperimentType();
case USER_NAME:
return isSetUserName();
case EXPERIMENT_NAME:
return isSetExperimentName();
case CREATION_TIME:
return isSetCreationTime();
case DESCRIPTION:
return isSetDescription();
case EXECUTION_ID:
return isSetExecutionId();
case GATEWAY_EXECUTION_ID:
return isSetGatewayExecutionId();
case GATEWAY_INSTANCE_ID:
return isSetGatewayInstanceId();
case ENABLE_EMAIL_NOTIFICATION:
return isSetEnableEmailNotification();
case EMAIL_ADDRESSES:
return isSetEmailAddresses();
case USER_CONFIGURATION_DATA:
return isSetUserConfigurationData();
case EXPERIMENT_INPUTS:
return isSetExperimentInputs();
case EXPERIMENT_OUTPUTS:
return isSetExperimentOutputs();
case EXPERIMENT_STATUS:
return isSetExperimentStatus();
case ERRORS:
return isSetErrors();
case PROCESSES:
return isSetProcesses();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof ExperimentModel)
return this.equals((ExperimentModel)that);
return false;
}
public boolean equals(ExperimentModel that) {
if (that == null)
return false;
boolean this_present_experimentId = true && this.isSetExperimentId();
boolean that_present_experimentId = true && that.isSetExperimentId();
if (this_present_experimentId || that_present_experimentId) {
if (!(this_present_experimentId && that_present_experimentId))
return false;
if (!this.experimentId.equals(that.experimentId))
return false;
}
boolean this_present_projectId = true && this.isSetProjectId();
boolean that_present_projectId = true && that.isSetProjectId();
if (this_present_projectId || that_present_projectId) {
if (!(this_present_projectId && that_present_projectId))
return false;
if (!this.projectId.equals(that.projectId))
return false;
}
boolean this_present_gatewayId = true && this.isSetGatewayId();
boolean that_present_gatewayId = true && that.isSetGatewayId();
if (this_present_gatewayId || that_present_gatewayId) {
if (!(this_present_gatewayId && that_present_gatewayId))
return false;
if (!this.gatewayId.equals(that.gatewayId))
return false;
}
boolean this_present_experimentType = true && this.isSetExperimentType();
boolean that_present_experimentType = true && that.isSetExperimentType();
if (this_present_experimentType || that_present_experimentType) {
if (!(this_present_experimentType && that_present_experimentType))
return false;
if (!this.experimentType.equals(that.experimentType))
return false;
}
boolean this_present_userName = true && this.isSetUserName();
boolean that_present_userName = true && that.isSetUserName();
if (this_present_userName || that_present_userName) {
if (!(this_present_userName && that_present_userName))
return false;
if (!this.userName.equals(that.userName))
return false;
}
boolean this_present_experimentName = true && this.isSetExperimentName();
boolean that_present_experimentName = true && that.isSetExperimentName();
if (this_present_experimentName || that_present_experimentName) {
if (!(this_present_experimentName && that_present_experimentName))
return false;
if (!this.experimentName.equals(that.experimentName))
return false;
}
boolean this_present_creationTime = true && this.isSetCreationTime();
boolean that_present_creationTime = true && that.isSetCreationTime();
if (this_present_creationTime || that_present_creationTime) {
if (!(this_present_creationTime && that_present_creationTime))
return false;
if (this.creationTime != that.creationTime)
return false;
}
boolean this_present_description = true && this.isSetDescription();
boolean that_present_description = true && that.isSetDescription();
if (this_present_description || that_present_description) {
if (!(this_present_description && that_present_description))
return false;
if (!this.description.equals(that.description))
return false;
}
boolean this_present_executionId = true && this.isSetExecutionId();
boolean that_present_executionId = true && that.isSetExecutionId();
if (this_present_executionId || that_present_executionId) {
if (!(this_present_executionId && that_present_executionId))
return false;
if (!this.executionId.equals(that.executionId))
return false;
}
boolean this_present_gatewayExecutionId = true && this.isSetGatewayExecutionId();
boolean that_present_gatewayExecutionId = true && that.isSetGatewayExecutionId();
if (this_present_gatewayExecutionId || that_present_gatewayExecutionId) {
if (!(this_present_gatewayExecutionId && that_present_gatewayExecutionId))
return false;
if (!this.gatewayExecutionId.equals(that.gatewayExecutionId))
return false;
}
boolean this_present_gatewayInstanceId = true && this.isSetGatewayInstanceId();
boolean that_present_gatewayInstanceId = true && that.isSetGatewayInstanceId();
if (this_present_gatewayInstanceId || that_present_gatewayInstanceId) {
if (!(this_present_gatewayInstanceId && that_present_gatewayInstanceId))
return false;
if (!this.gatewayInstanceId.equals(that.gatewayInstanceId))
return false;
}
boolean this_present_enableEmailNotification = true && this.isSetEnableEmailNotification();
boolean that_present_enableEmailNotification = true && that.isSetEnableEmailNotification();
if (this_present_enableEmailNotification || that_present_enableEmailNotification) {
if (!(this_present_enableEmailNotification && that_present_enableEmailNotification))
return false;
if (this.enableEmailNotification != that.enableEmailNotification)
return false;
}
boolean this_present_emailAddresses = true && this.isSetEmailAddresses();
boolean that_present_emailAddresses = true && that.isSetEmailAddresses();
if (this_present_emailAddresses || that_present_emailAddresses) {
if (!(this_present_emailAddresses && that_present_emailAddresses))
return false;
if (!this.emailAddresses.equals(that.emailAddresses))
return false;
}
boolean this_present_userConfigurationData = true && this.isSetUserConfigurationData();
boolean that_present_userConfigurationData = true && that.isSetUserConfigurationData();
if (this_present_userConfigurationData || that_present_userConfigurationData) {
if (!(this_present_userConfigurationData && that_present_userConfigurationData))
return false;
if (!this.userConfigurationData.equals(that.userConfigurationData))
return false;
}
boolean this_present_experimentInputs = true && this.isSetExperimentInputs();
boolean that_present_experimentInputs = true && that.isSetExperimentInputs();
if (this_present_experimentInputs || that_present_experimentInputs) {
if (!(this_present_experimentInputs && that_present_experimentInputs))
return false;
if (!this.experimentInputs.equals(that.experimentInputs))
return false;
}
boolean this_present_experimentOutputs = true && this.isSetExperimentOutputs();
boolean that_present_experimentOutputs = true && that.isSetExperimentOutputs();
if (this_present_experimentOutputs || that_present_experimentOutputs) {
if (!(this_present_experimentOutputs && that_present_experimentOutputs))
return false;
if (!this.experimentOutputs.equals(that.experimentOutputs))
return false;
}
boolean this_present_experimentStatus = true && this.isSetExperimentStatus();
boolean that_present_experimentStatus = true && that.isSetExperimentStatus();
if (this_present_experimentStatus || that_present_experimentStatus) {
if (!(this_present_experimentStatus && that_present_experimentStatus))
return false;
if (!this.experimentStatus.equals(that.experimentStatus))
return false;
}
boolean this_present_errors = true && this.isSetErrors();
boolean that_present_errors = true && that.isSetErrors();
if (this_present_errors || that_present_errors) {
if (!(this_present_errors && that_present_errors))
return false;
if (!this.errors.equals(that.errors))
return false;
}
boolean this_present_processes = true && this.isSetProcesses();
boolean that_present_processes = true && that.isSetProcesses();
if (this_present_processes || that_present_processes) {
if (!(this_present_processes && that_present_processes))
return false;
if (!this.processes.equals(that.processes))
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy