public CvTerm getInteractionType() { return wrappedInteraction.getInteractionType(); }
public void onInteractionTypeUpdate(T interaction, CvTerm old) { if (old == null){ interactionChangeLogger.log(Level.INFO, "The interaction type has been initialised for the interaction " + interaction.toString()); } else if (interaction.getInteractionType() == null){ interactionChangeLogger.log(Level.INFO, "The interaction type has been reset for the interaction " + interaction.toString()); } else { interactionChangeLogger.log(Level.INFO, "The interaction type " + old + " has been updated with " + interaction.getInteractionType() + " in the interaction " + interaction.toString()); } }
protected void buildInteractionkey(I interaction) { this.stringBuilder.setLength(0); this.interactorAcs.clear(); // read ordered set of interactor acs for (Object obj : interaction.getParticipants()) { Participant component = (Participant)obj; interactorAcs.add(component.getInteractor() instanceof IntactInteractor ? ((IntactInteractor) component.getInteractor()).getAc() : component.getInteractor().getShortName()); } for (String prL : interactorAcs) { stringBuilder.append(" "); stringBuilder.append(prL); } // interaction type stringBuilder.append(interaction.getInteractionType().getMIIdentifier()); // experiment CvTerm method = extractInteractionDetectionMethodFrom(interaction); if (method != null) { stringBuilder.append(" "); stringBuilder.append(method.getMIIdentifier()); } }
CvTerm type1 = interaction1.getInteractionType(); CvTerm type2 = interaction2.getInteractionType();
CvTerm type1 = interaction1.getInteractionType(); CvTerm type2 = interaction2.getInteractionType();
hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(interaction.getInteractionType());
else if (interaction.getInteractionType() != null){ sentence = new Sentence(interaction.getInteractionType(), extractInteractionDetectionMethodFrom(interaction));
/** * This method will copy basic properties from the Interaction source in the complex target. * It will erase existing annotations, xrefs, checksums and identifiers * This method does not copy the participants of the source * @param source * @param target */ public static void copyAndOverrideBasicComplexPropertiesWithInteractionProperties(Interaction source, Complex target){ if (source != null && target != null){ target.setInteractionType(source.getInteractionType()); target.setCreatedDate(source.getCreatedDate()); target.setUpdatedDate(source.getUpdatedDate()); if (source.getShortName() != null){ target.setShortName(source.getShortName()); } // copy collections target.getAnnotations().clear(); target.getAnnotations().addAll(source.getAnnotations()); target.getXrefs().clear(); target.getXrefs().addAll(source.getXrefs()); target.getIdentifiers().clear(); target.getIdentifiers().addAll(source.getIdentifiers()); target.getChecksums().clear(); target.getChecksums().addAll(source.getChecksums()); } }
target.setCreatedDate(source.getCreatedDate()); target.setShortName(source.getShortName()); target.setInteractionType(source.getInteractionType()); target.setUpdatedDate(source.getUpdatedDate());
if (object.getInteractionType() != null){ MIJsonUtils.writeSeparator(writer); MIJsonUtils.writePropertyKey("interactionType", writer); getCvWriter().write(object.getInteractionType());