本文整理汇总了Java中org.apache.taverna.scufl2.api.profiles.Profile.getConfigurations方法的典型用法代码示例。如果您正苦于以下问题:Java Profile.getConfigurations方法的具体用法?Java Profile.getConfigurations怎么用?Java Profile.getConfigurations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.taverna.scufl2.api.profiles.Profile
的用法示例。
在下文中一共展示了Profile.getConfigurations方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitProfile
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
@Override
public void visitProfile(Profile bean) {
Integer profilePosition = bean.getProfilePosition();
if (profilePosition != null && profilePosition < 0)
listener.negativeValue(bean, "profilePosition", profilePosition);
if (checkComplete) {
if (bean.getProcessorBindings() == null)
listener.nullField(bean, "processorBindings");
if (bean.getConfigurations() == null)
listener.nullField(bean, "configurations");
// It may be OK for the profilePosition to be null
if (bean.getActivities() == null)
listener.nullField(bean, "activities");
}
}
示例2: fastaPscan
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
@Test
public void fastaPscan() throws Exception {
URL wfResource = getClass().getResource(WF_FASTA_AND_PSCAN);
assertNotNull("Could not find workflow " + WF_FASTA_AND_PSCAN,
wfResource);
T2FlowParser parser = new T2FlowParser();
parser.setValidating(true);
// parser.setStrict(true);
WorkflowBundle wfBundle = parser.parseT2Flow(wfResource.openStream());
Profile p = wfBundle.getMainProfile();
for (Configuration c : p.getConfigurations()) {
System.out.println(c.getConfigures());
System.out.println(c.getJson());
}
}
示例3: fastaPscanDbfetch
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
@Test
public void fastaPscanDbfetch() throws Exception {
URL wfResource = getClass().getResource(WF_FASTA_PSCAN_AND_DBFETCH);
assertNotNull("Could not find workflow " + WF_FASTA_PSCAN_AND_DBFETCH,
wfResource);
T2FlowParser parser = new T2FlowParser();
parser.setValidating(true);
// parser.setStrict(true);
WorkflowBundle wfBundle = parser.parseT2Flow(wfResource.openStream());
Profile p = wfBundle.getMainProfile();
for (Configuration c : p.getConfigurations()) {
System.out.println(c.getConfigures());
System.out.println(c.getJson());
}
}
示例4: simpleFasta
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
@Test
public void simpleFasta() throws Exception {
URL wfResource = getClass().getResource(WF_SIMPLE_FASTA);
assertNotNull("Could not find workflow " + WF_SIMPLE_FASTA,
wfResource);
T2FlowParser parser = new T2FlowParser();
parser.setValidating(true);
// parser.setStrict(true);
WorkflowBundle wfBundle = parser.parseT2Flow(wfResource.openStream());
Profile p = wfBundle.getMainProfile();
for (Configuration c : p.getConfigurations()) {
System.out.println(c.getConfigures());
System.out.println(c.getJson());
}
}
示例5: getConstants
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
public Set<Processor> getConstants(Workflow workflow, Profile profile) {
Set<Processor> procs = new LinkedHashSet<>();
for (Configuration config : profile.getConfigurations()) {
Configurable configurable = config.getConfigures();
if (!CONSTANT.equals(configurable.getType())
|| !(configurable instanceof Activity))
continue;
for (ProcessorBinding bind : processorBindingsToActivity((Activity) configurable))
procs.add(bind.getBoundProcessor());
}
return procs;
}
示例6: configurationsFor
import org.apache.taverna.scufl2.api.profiles.Profile; //导入方法依赖的package包/类
/**
* Returns the list of {@link Configuration Configurations} for a
* {@link Configurable} in the given {@link Profile}.
*
* @param configurable
* the <code>Configurable</code> to find a
* <code>Configuration</code> for
* @param profile
* the <code>Profile</code> to look for the
* <code>Configuration</code> in
* @return the list of <code>Configurations</code> for a
* <code>Configurable</code> in the given <code>Profile</code>
*/
public List<Configuration> configurationsFor(Configurable configurable,
Profile profile) {
List<Configuration> configurations = new ArrayList<>();
for (Configuration config : profile.getConfigurations())
if (configurable.equals(config.getConfigures()))
configurations.add(config);
// Collections.sort(configurations);
return configurations;
}