| Constructor and Description |
|---|
PolyglotStewardThreaded()
Class constructor.
|
PolyglotStewardThreaded(PolyglotStewardThreaded polyglot)
Class copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(SoftwareServerClient icr)
Add a software reuse client.
|
boolean |
add(String server,
int port)
Add a software reuse client.
|
void |
close()
Close all software reuse client connections.
|
void |
conversions() |
SoftwareServerAuxiliary.FileData |
convert(SoftwareServerAuxiliary.FileData input_file_data,
String output_type)
Convert a files format.
|
SoftwareServerAuxiliary.FileData |
convert(SoftwareServerAuxiliary.FileData input_file_data,
Vector<PolyglotAuxiliary.Conversion<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application>> conversions)
Convert a files format.
|
void |
convert(String input_filename,
String output_path,
String output_type)
Convert a files format.
|
void |
convert(String input_filename,
String output_path,
Vector<PolyglotAuxiliary.Conversion<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application>> conversions)
Convert a files format.
|
SoftwareServerClient |
get(int index)
Retrieve the specified software reuse client.
|
IOGraph<String,String> |
getDistributedInputOutputGraph()
Get a string only version of this IOGraph encoded with host machines.
|
IOGraph<String,String> |
getInputOutputGraph()
Get the available inputs, outputs, and conversions.
|
IOGraph<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application> |
getIOGraph()
Get the I/O-graph.
|
TreeSet<String> |
getOutputs()
Get the outputs available.
|
TreeSet<String> |
getOutputs(String input)
Get the outputs available for the given input type.
|
TreeSet<String> |
getOutputs(TreeSet<String> inputs)
Get the common outputs available for the given input types.
|
Vector<String> |
getServers()
Get a list of connected software reuse servers.
|
void |
listen(int port)
Start listening for SoftwareServers.
|
static void |
main(String[] args)
Command line polyglot interface.
|
void |
run()
Clean up lost connections.
|
void |
setApplicationFlexibility(int value)
Set the flexibility when choosing an application where 0=none (default), 1=allow parallel applications with
the same name (different software reuse servers), 2=allow all parallel applications.
|
int |
size()
Get the number of software reuse clients being used.
|
convertLater, waitOnPendingpublic PolyglotStewardThreaded()
public PolyglotStewardThreaded(PolyglotStewardThreaded polyglot)
polyglot - the polyglot steward to copypublic int size()
public boolean add(SoftwareServerClient icr)
icr - a software reuse clientpublic boolean add(String server, int port)
server - the server nameport - the port numberpublic SoftwareServerClient get(int index)
index - the index of the desired clientpublic Vector<String> getServers()
getServers in class Polyglotpublic IOGraph<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application> getIOGraph()
public TreeSet<String> getOutputs()
getOutputs in class Polyglotpublic TreeSet<String> getOutputs(String input)
getOutputs in class Polyglotinput - the input typepublic TreeSet<String> getOutputs(TreeSet<String> inputs)
getOutputs in class Polyglotinputs - the input typespublic IOGraph<String,String> getInputOutputGraph()
getInputOutputGraph in class Polyglotpublic IOGraph<String,String> getDistributedInputOutputGraph()
getDistributedInputOutputGraph in class Polyglotpublic void setApplicationFlexibility(int value)
value - the flexibility valuepublic SoftwareServerAuxiliary.FileData convert(SoftwareServerAuxiliary.FileData input_file_data, Vector<PolyglotAuxiliary.Conversion<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application>> conversions)
input_file_data - the input file dataconversions - the conversions to performpublic SoftwareServerAuxiliary.FileData convert(SoftwareServerAuxiliary.FileData input_file_data, String output_type)
input_file_data - the input file dataoutput_type - the name of the output typepublic void convert(String input_filename, String output_path, Vector<PolyglotAuxiliary.Conversion<SoftwareServerAuxiliary.Data,SoftwareServerAuxiliary.Application>> conversions)
input_filename - the absolute name of the input fileoutput_path - the output pathconversions - the conversions to performpublic void convert(String input_filename, String output_path, String output_type)
public void close()
public void conversions()
public void listen(int port)
port - the port to listen topublic static void main(String[] args)
args - command line argumentsCopyright © 2014. All rights reserved.