public class AdvocateFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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
|
public static AdvocateFactory getInstance()
public Advocate getAdvocate(int index)
index
- an advocate indexpublic java.util.ArrayList<Advocate> getPossibilities()
public int getAdvocate(java.lang.String aName)
aName
- the name of an advocateCopyright © 2013. All Rights Reserved.