本文整理了Java中uk.ac.ebi.intact.model.Interaction.setExperiments()
方法的一些代码示例,展示了Interaction.setExperiments()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interaction.setExperiments()
方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Interaction
类名称:Interaction
方法名:setExperiments
暂无
代码示例来源:origin: uk.ac.ebi.intact.core/intact-persister
protected void syncExperiments(Interaction intactObject) {
ExperimentPersister persister = ExperimentPersister.getInstance();
List<Experiment> experiments = new ArrayList<Experiment>(intactObject.getExperiments().size());
for (Experiment experiment : intactObject.getExperiments()) {
Experiment exp = persister.syncIfTransient(experiment);
experiments.add(exp);
}
intactObject.setExperiments(experiments);
}
}
代码示例来源:origin: uk.ac.ebi.intact/intact-core
public Experiment createExperimentRandom(int interactionNumber) {
Experiment exp = createExperimentEmpty(randomExperimentLabel());
for (int i=0; i<interactionNumber; i++) {
Interaction interaction = createInteractionRandomBinary();
interaction.setExperiments(new ArrayList<Experiment>(Arrays.asList(exp)));
exp.addInteraction(interaction);
}
return exp;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
public Experiment createExperimentRandom(int interactionNumber) {
Experiment exp = createExperimentEmpty(randomExperimentLabel());
for (int i=0; i<interactionNumber; i++) {
Interaction interaction = createInteractionRandomBinary();
interaction.setExperiments(new ArrayList<Experiment>(Arrays.asList(exp)));
exp.addInteraction(interaction);
}
return exp;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
public Experiment createExperimentRandom(int interactionNumber) {
Experiment exp = createExperimentEmpty(randomExperimentLabel());
for (int i=0; i<interactionNumber; i++) {
Interaction interaction = createInteractionRandomBinary();
interaction.setExperiments(new ArrayList<Experiment>(Arrays.asList(exp)));
exp.addInteraction(interaction);
}
return exp;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
public Experiment createExperimentRandom(String shortLabel, int interactionNumber) {
Experiment exp = createExperimentEmpty(randomExperimentLabel());
exp.setShortLabel(shortLabel);
for (int i=0; i<interactionNumber; i++) {
Interaction interaction = createInteractionRandomBinary();
interaction.setExperiments(new ArrayList<Experiment>(Arrays.asList(exp)));
exp.addInteraction(interaction);
}
return exp;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
public Experiment createExperimentRandom(String shortLabel, int interactionNumber) {
Experiment exp = createExperimentEmpty(randomExperimentLabel());
exp.setShortLabel(shortLabel);
for (int i=0; i<interactionNumber; i++) {
Interaction interaction = createInteractionRandomBinary();
interaction.setExperiments(new ArrayList<Experiment>(Arrays.asList(exp)));
exp.addInteraction(interaction);
}
return exp;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
interaction.setExperiments(experiments);
} else {
experiments = interaction.getExperiments();
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
interaction.setExperiments(experiments);
} else {
experiments = interaction.getExperiments();
内容来源于网络,如有侵权,请联系作者删除!