|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.representationparser.OSgLWriter
org.optimizationservices.oscommon.representationparser.OSbLWriter
public class OSbLWriter
The OSbLWriter
class is used to construct an instance that follows
the OSbL format.
Field Summary |
---|
Fields inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
m_document |
Constructor Summary | |
---|---|
OSbLWriter()
constructor. |
Method Summary | |
---|---|
boolean |
addOtherBenchmark(java.lang.String name,
java.lang.String value,
java.lang.String description)
Add an other benchmark element. |
static void |
main(java.lang.String[] argv)
main for test purposes. |
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 |
setOSBenchmark(OSBenchmark osBenchmark)
set the OSBenchmark, a standard os benchmark interface. |
boolean |
setOtherBenchmarks(java.lang.String[] names,
java.lang.String[] values,
java.lang.String[] descriptions)
Set the other benchmark related elements. |
boolean |
setServiceName(java.lang.String serviceName)
Set the service name. |
boolean |
setServiceURI(java.lang.String serviceURI)
Set the service uri. |
Methods inherited from class org.optimizationservices.oscommon.representationparser.OSgLWriter |
---|
getDocument, setDocument, writeToFile, writeToSring, writeToStandardOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSbLWriter()
Method Detail |
---|
public boolean setOSBenchmark(OSBenchmark osBenchmark) throws java.lang.Exception
osBenchmark
- holds the standard os benchmark interface.
java.lang.Exception
public boolean setServiceURI(java.lang.String serviceURI)
serviceURI
- holds the service URI.
public boolean setServiceName(java.lang.String serviceName)
serviceName
- holds the service name.
public boolean setBenchmarkTime(java.util.GregorianCalendar time)
time
- holds the time of the last benchmark.
public boolean setBenchmarkMessage(java.lang.String message)
message
- holds the benchmark message.
public boolean setBenchmarkScores(BenchmarkScores scores)
scores
- holds the benchmark scores.
public boolean setBenchmarkStatistics(BenchmarkStatistics benchmarkStatistics)
benchmarkStatistics
- holds the benchmark statistics.
public boolean setOptimizationBenchmark(OptimizationBenchmark optimizationBenchmark)
optimizationBenchmark
- holds the optimization benchmark information.
public boolean setOtherBenchmarks(java.lang.String[] names, java.lang.String[] values, java.lang.String[] descriptions)
names
- holds the names of the other benchmarks. It is required.values
- holds the values of the other benchmarks, empty String "" if no value for an benchmark.descriptions
- holds the descriptions of the other benchmarks, empty String "" if no value for an benchmark, null for
the entire array if none of the benchmarks have descriptions.
public boolean addOtherBenchmark(java.lang.String name, java.lang.String value, java.lang.String description)
name
- holds the name of the other benchmark element. It is required.value
- holds the value of the other benchmark element, empty String "" if none.description
- holds the description of the other benchmark element, empty String "" if none.
public static void main(java.lang.String[] argv)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |