|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.app.util.ScorebotInfo
public class ScorebotInfo
Stores information about a particular set of services
Field Summary | |
---|---|
static ScorebotInfo |
REF
stores the ScorebotInfo for everyone to access |
Constructor Summary | |
---|---|
ScorebotInfo()
Instantiates a ScorebotInfo |
Method Summary | |
---|---|
void |
addServiceInfo(ServiceInfo si)
Adds a service to be serviceed. |
java.util.Vector<Test> |
getAllTestFactories()
gets all known tests |
int |
getMajorNumber()
gets the major revision number |
int |
getMinorNumber()
gets the minor revision number |
java.lang.String |
getOptionDescription(Test t,
java.lang.String optionName)
gets the description of an option (returns "unknown option" if the requested one isn't found) |
java.lang.String |
getOptionIdentifier(Test t,
java.lang.String optionName)
gets the identifier of an option (returns "unknown_option" if the requested one isn't found) |
LiteralType |
getOptionType(Test t,
java.lang.String optionName)
gets the type of an option (returns null if the requested one isn't found) |
java.lang.String |
getResultDescription(Test t,
java.lang.String resultName)
gets the description of an result (returns "unknown result" if the requested one isn't found) |
java.lang.String |
getResultIdentifier(Test t,
java.lang.String resultName)
gets the identifier of an result (returns unknown_result if the requested one isn't found) |
LiteralType |
getResultType(Test t,
java.lang.String resultName)
gets the type of an result (returns null if the requested one isn't found) |
int |
getRevisionNumber()
gets the revision number |
Service |
getServiceByName(java.lang.String name)
gets Service by its String rep returns null if the string isn't found |
java.lang.String |
getServiceDescription(Service s)
gets the description of this service (returns "unknown service" if the requested one isn't found) |
ServiceInfo |
getServiceInfo(int index)
Gets the specified service |
java.util.Vector<ServiceInfo> |
getServiceInfos()
gets the services in this service |
java.lang.String |
getServiceName(Service s)
gets the name of a service (returns "unknown service" if the requested one isn't found) |
java.util.Vector<Service> |
getServices()
gets all known services |
ServiceType |
getServiceType(Service s)
gets the type of this service (returns null if the requested one isn't found) |
Test |
getTestByName(Service s,
java.lang.String name)
get test by a string rep of it's name returns null if the name isn't found |
java.lang.String |
getTestDescription(Test t)
gets the description of this test (returns "unknown test" if the requested one isn't found) |
java.util.Vector<Test> |
getTestFactories(Service s)
gets all known tests (factory instantiations) for a particular service (includes those for a generic service) |
java.util.Vector<Test> |
getTestFactories(Service s,
boolean getGenericTestsToo)
gets all known tests (factory instantiations) for a particular service |
java.lang.String |
getTestName(Test t)
gets the name of a test (returns "unknown test" if the requested one isn't found) |
java.util.Vector<OptionInfo> |
getTestOptionsInfo(Test t)
gets info about the options in this test (returns an empty vector if the requested one isn't found) |
java.util.Vector<ResultInfo> |
getTestResultsInfo(Test t)
gets info about the results returned by this test (returns an empty vector if the requested one isn't found) |
java.lang.String |
getVersion()
gets the version of this info |
void |
removeServiceInfo(int index)
Removes the service from this service |
boolean |
removeServiceInfo(ServiceInfo si)
Removes the service from this info |
void |
setMajorNumber(int majorNumber)
sets the major revision number |
void |
setMinorNumber(int minorNumber)
sets the minor revision number |
void |
setRevisionNumber(int revisionNumber)
gets the revision number |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ScorebotInfo REF
Constructor Detail |
---|
public ScorebotInfo()
Method Detail |
---|
public java.util.Vector<Service> getServices()
public Service getServiceByName(java.lang.String name)
name
- String representation of the service to return
public java.lang.String getServiceName(Service s)
public java.lang.String getServiceDescription(Service s)
public ServiceType getServiceType(Service s)
public java.util.Vector<Test> getTestFactories(Service s)
public Test getTestByName(Service s, java.lang.String name)
s
- service that the test should run onname
- name of test to find
public java.util.Vector<Test> getAllTestFactories()
public java.util.Vector<Test> getTestFactories(Service s, boolean getGenericTestsToo)
s
- the service to get tests forgetGenericTestsToo
- whether or not to include all tests which work on a GenericService too
public java.lang.String getTestName(Test t)
public java.lang.String getTestDescription(Test t)
public java.util.Vector<OptionInfo> getTestOptionsInfo(Test t)
public java.util.Vector<ResultInfo> getTestResultsInfo(Test t)
public java.lang.String getOptionDescription(Test t, java.lang.String optionName)
public java.lang.String getOptionIdentifier(Test t, java.lang.String optionName)
public LiteralType getOptionType(Test t, java.lang.String optionName)
public java.lang.String getResultDescription(Test t, java.lang.String resultName)
public java.lang.String getResultIdentifier(Test t, java.lang.String resultName)
public LiteralType getResultType(Test t, java.lang.String resultName)
public java.lang.String getVersion()
public void addServiceInfo(ServiceInfo si)
si
- the service to add to this infopublic void removeServiceInfo(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the service at the specified index.
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public boolean removeServiceInfo(ServiceInfo si)
si
- the SerivceInfo to remove
public ServiceInfo getServiceInfo(int index) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public java.util.Vector<ServiceInfo> getServiceInfos()
public int getMajorNumber()
public void setMajorNumber(int majorNumber)
majorNumber
- public int getMinorNumber()
public void setMinorNumber(int minorNumber)
minorNumber
- public int getRevisionNumber()
public void setRevisionNumber(int revisionNumber)
revisionNumber
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |