private int childRandom() { return childRandom(MIN_CHILDREN, MAX_CHILDREN); }
private int childRandom() { return childRandom(MIN_CHILDREN, MAX_CHILDREN); }
private int childRandom() { return childRandom(MIN_CHILDREN, MAX_CHILDREN); }
public IntactEntry createIntactEntryRandom() { return createIntactEntryRandom(childRandom(), 1, childRandom(1, MAX_CHILDREN)); }
public IntactEntry createIntactEntryRandom() { return createIntactEntryRandom(childRandom(), 1, childRandom(1, MAX_CHILDREN)); }
public IntactEntry createIntactEntryRandom() { return createIntactEntryRandom(childRandom(), 1, childRandom(1, MAX_CHILDREN)); }
public String randomString() { return randomString(childRandom(4,10)); }
public String randomString() { return randomString(childRandom(4,10)); }
public String randomString() { return randomString(childRandom(4,10)); }
public IntactEntry createIntactEntryRandom(int experimentNumber, int minInteractionsPerExperiment, int maxInteractionsPerExpeciment) { Collection<Interaction> interactions = new ArrayList<Interaction>(); for (int i=0; i<experimentNumber; i++) { Experiment exp = createExperimentRandom(childRandom(minInteractionsPerExperiment, maxInteractionsPerExpeciment)); interactions.addAll(exp.getInteractions()); } return new IntactEntry(interactions); }
public IntactEntry createIntactEntryRandom(int experimentNumber, int minInteractionsPerExperiment, int maxInteractionsPerExpeciment) { Collection<Interaction> interactions = new ArrayList<Interaction>(); for (int i=0; i<experimentNumber; i++) { Experiment exp = createExperimentRandom(childRandom(minInteractionsPerExperiment, maxInteractionsPerExpeciment)); interactions.addAll(exp.getInteractions()); } return new IntactEntry(interactions); }
public IntactEntry createIntactEntryRandom(int experimentNumber, int minInteractionsPerExperiment, int maxInteractionsPerExpeciment) { Collection<Interaction> interactions = new ArrayList<Interaction>(); for (int i=0; i<experimentNumber; i++) { Experiment exp = createExperimentRandom(childRandom(minInteractionsPerExperiment, maxInteractionsPerExpeciment)); interactions.addAll(exp.getInteractions()); } return new IntactEntry(interactions); }
public Component createComponentNeutral(Interaction interaction, Interactor interactor) { CvExperimentalRole expRole = createCvObject(CvExperimentalRole.class, CvExperimentalRole.NEUTRAL_PSI_REF, CvExperimentalRole.NEUTRAL); CvBiologicalRole bioRole = createCvObject(CvBiologicalRole.class, CvBiologicalRole.UNSPECIFIED_PSI_REF, CvBiologicalRole.UNSPECIFIED); Component component = createComponent(interaction, interactor, expRole, bioRole); for (int i=0; i<childRandom(0,2); i++) { component.addBindingDomain(createFeatureRandom()); } return component; }
public Component createComponentNeutral(Interaction interaction, Interactor interactor) { CvExperimentalRole expRole = createCvObject(CvExperimentalRole.class, CvExperimentalRole.NEUTRAL_PSI_REF, CvExperimentalRole.NEUTRAL); CvBiologicalRole bioRole = createCvObject(CvBiologicalRole.class, CvBiologicalRole.UNSPECIFIED_PSI_REF, CvBiologicalRole.UNSPECIFIED); Component component = createComponent(interaction, interactor, expRole, bioRole); for (int i=0; i<childRandom(0,2); i++) { component.addBindingDomain(createFeatureRandom()); } return component; }
public Component createComponentNeutral(Interaction interaction, Interactor interactor) { CvExperimentalRole expRole = createCvObject(CvExperimentalRole.class, CvExperimentalRole.NEUTRAL_PSI_REF, CvExperimentalRole.NEUTRAL); CvBiologicalRole bioRole = createCvObject(CvBiologicalRole.class, CvBiologicalRole.UNSPECIFIED_PSI_REF, CvBiologicalRole.UNSPECIFIED); Component component = createComponent(interaction, interactor, expRole, bioRole); for (int i=0; i<childRandom(0,2); i++) { component.addBindingDomain(createFeatureRandom()); } return component; }
public Component createComponentNeutral( Interactor interactor ) { CvInteractionType cvInteractionType = createCvObject(CvInteractionType.class, CvInteractionType.DIRECT_INTERACTION_MI_REF, CvInteractionType.DIRECT_INTERACTION); CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.INTERACTION_MI_REF, CvInteractorType.INTERACTION ); CvExperimentalRole expRole = createCvObject(CvExperimentalRole.class, CvExperimentalRole.NEUTRAL_PSI_REF, CvExperimentalRole.NEUTRAL); CvBiologicalRole bioRole = createCvObject(CvBiologicalRole.class, CvBiologicalRole.UNSPECIFIED_PSI_REF, CvBiologicalRole.UNSPECIFIED); Interaction interaction = new InteractionImpl(new ArrayList<Experiment>(Arrays.asList(createExperimentEmpty())), cvInteractionType, intType, nextString("label"), getInstitution()); Component component = createComponent(interaction, interactor, expRole, bioRole); for (int i=0; i<childRandom(0,2); i++) { component.addBindingDomain(createFeatureRandom()); } return component; }
public Component createComponentNeutral( Interactor interactor ) { CvInteractionType cvInteractionType = createCvObject(CvInteractionType.class, CvInteractionType.DIRECT_INTERACTION_MI_REF, CvInteractionType.DIRECT_INTERACTION); CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.INTERACTION_MI_REF, CvInteractorType.INTERACTION ); CvExperimentalRole expRole = createCvObject(CvExperimentalRole.class, CvExperimentalRole.NEUTRAL_PSI_REF, CvExperimentalRole.NEUTRAL); CvBiologicalRole bioRole = createCvObject(CvBiologicalRole.class, CvBiologicalRole.UNSPECIFIED_PSI_REF, CvBiologicalRole.UNSPECIFIED); Interaction interaction = new InteractionImpl(new ArrayList<Experiment>(Arrays.asList(createExperimentEmpty())), cvInteractionType, intType, nextString("label"), getInstitution()); Component component = createComponent(interaction, interactor, expRole, bioRole); for (int i=0; i<childRandom(0,2); i++) { component.addBindingDomain(createFeatureRandom()); } return component; }