| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSBenchmark
public class OSBenchmark
The OSBenchmark class is a local interface for storing Optimization Services
 benchmark. Its design follows the Optimization Services benchmark Language (OSbL). 
 All the data structures in this class are standards specified in OSbL.
| Field Summary | |
|---|---|
 BenchmarkData | 
benchmarkData
benchmarkData holds the second child of the OSBenchmark specified by the OSbL Schema.  | 
 BenchmarkHeader | 
benchmarkHeader
benchmarkHeader holds the first child of the OSBenchmark specified by the OSbL Schema.  | 
| Constructor Summary | |
|---|---|
OSBenchmark()
Default constructor.  | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
getBenchmarkMessage()
Get the benchmark message.  | 
 BenchmarkScores | 
getBenchmarkScores()
Get the benchmark scores.  | 
 BenchmarkStatistics | 
getBenchmarkStatistics()
Get the benchmark statistics.  | 
 java.util.GregorianCalendar | 
getBenchmarkTime()
Get time of the last benchmark.  | 
 OptimizationBenchmark | 
getOptimizationBenchmark()
Get the optimization benchmark information.  | 
 java.util.Hashtable<java.lang.String,java.lang.String> | 
getOtherBenchmarkDescriptions()
get a hashmap of other benchmark descriptions.  | 
 java.lang.String[] | 
getOtherBenchmarkNames()
get a string array of names of other benchmarks.  | 
 java.util.Hashtable<java.lang.String,java.lang.String> | 
getOtherBenchmarkValues()
get a hashmap of other benchmark values.  | 
 java.lang.String | 
getServiceName()
Get service name.  | 
 java.lang.String | 
getServiceURI()
Get service uri.  | 
static void | 
main(java.lang.String[] args)
main for test purposes.  | 
 OSBenchmark | 
readOSbL(java.lang.String osbl,
         boolean isFile,
         boolean validate)
read an OSbL instance and return and OSBenchmark object.  | 
 boolean | 
setBenchmarkMessage(java.lang.String message)
Set the benchmark message.  | 
 boolean | 
setBenchmarkScores(BenchmarkScores scores)
Set the benchmark scores.  | 
 boolean | 
setBenchmarkStatistics(BenchmarkStatistics benchmarkStatistics)
Set the benchmark statistics.  | 
 boolean | 
setBenchmarkTime(java.util.GregorianCalendar time)
Set time of the last benchmark.  | 
 boolean | 
setOptimizationBenchmark(OptimizationBenchmark optimizationBenchmark)
Set the optimization benchmark information.  | 
 boolean | 
setOtherBenchmarks(java.lang.String[] names,
                   java.lang.String[] descriptions,
                   java.lang.String[] values)
set other benchmarks, with their names (required), descriptions (optional) and values (optional).  | 
 boolean | 
setServiceName(java.lang.String serviceName)
Set service name.  | 
 boolean | 
setServiceURI(java.lang.String serviceURI)
Set service uri.  | 
 java.lang.String | 
writeOSbL()
write the OSBenchmark to an osbl xml string.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public BenchmarkHeader benchmarkHeader
public BenchmarkData benchmarkData
| Constructor Detail | 
|---|
public OSBenchmark()
| Method Detail | 
|---|
public OSBenchmark readOSbL(java.lang.String osbl,
                            boolean isFile,
                            boolean validate)
                     throws java.lang.Exception
osbl - holds the optimization benchmark in a string which format follows the
 Optimization Services benchmark Language (OSbL) schema.isFile - holds whether the osbl string is a file name or a string that literally holds the osbl contents.validate - holds whether the reader should be validating against the schema or not.
java.lang.Exception - if there are errors in reading the string or setting the OSBenchmark.
public java.lang.String writeOSbL()
                           throws java.lang.Exception
java.lang.Exception - if there are errors in writing the osbl string.public java.lang.String getServiceName()
public boolean setServiceName(java.lang.String serviceName)
serviceName - holds the name of the service.
public java.lang.String getServiceURI()
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI - holds the uri of the service.
public java.util.GregorianCalendar getBenchmarkTime()
public boolean setBenchmarkTime(java.util.GregorianCalendar time)
time - holds the time of the last benchmark.
public java.lang.String getBenchmarkMessage()
public boolean setBenchmarkMessage(java.lang.String message)
message - holds the benchmark message.
public BenchmarkScores getBenchmarkScores()
public boolean setBenchmarkScores(BenchmarkScores scores)
scores - holds the benchmark scores.
public BenchmarkStatistics getBenchmarkStatistics()
public boolean setBenchmarkStatistics(BenchmarkStatistics benchmarkStatistics)
benchmarkStatistics - holds the benchmark statistics.
public OptimizationBenchmark getOptimizationBenchmark()
public boolean setOptimizationBenchmark(OptimizationBenchmark optimizationBenchmark)
optimizationBenchmark - holds the optimization benchmark information.
public java.lang.String[] getOtherBenchmarkNames()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherBenchmarkDescriptions()
public java.util.Hashtable<java.lang.String,java.lang.String> getOtherBenchmarkValues()
public boolean setOtherBenchmarks(java.lang.String[] names,
                                  java.lang.String[] descriptions,
                                  java.lang.String[] values)
names - holds the names of the other benchmarks; it is required.descriptions - holds the descriptions of the other benchmarks; null if none.values - holds the values of the other benchmarks; null if none.
public static void main(java.lang.String[] args)
argv - command line arguments.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||