com.compomics.util.experiment.identification
Class AdvocateFactory

java.lang.Object
  extended by com.compomics.util.experiment.identification.AdvocateFactory

public class AdvocateFactory
extends java.lang.Object

This factory will provide adapted advocates when requested. Created by IntelliJ IDEA. User: Marc Date: Jun 25, 2010 Time: 5:39:12 PM


Method Summary
 Advocate getAdvocate(int index)
          Returns an advocate of the specified index
 int getAdvocate(java.lang.String aName)
          returns the index of an advocate base on its name
static AdvocateFactory getInstance()
          A static method to retrieve the factory instance
 java.util.ArrayList<Advocate> getPossibilities()
          returns all implemented advocates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AdvocateFactory getInstance()
A static method to retrieve the factory instance

Returns:
the factory instance

getAdvocate

public Advocate getAdvocate(int index)
Returns an advocate of the specified index

Parameters:
index - an advocate index
Returns:
an advocate of the specified index

getPossibilities

public java.util.ArrayList<Advocate> getPossibilities()
returns all implemented advocates

Returns:
all implemented advocates

getAdvocate

public int getAdvocate(java.lang.String aName)
returns the index of an advocate base on its name

Parameters:
aName - the name of an advocate
Returns:
the corresponding index


Copyright © 2011. All Rights Reserved.