public class PolyglotClient extends Polyglot
Constructor and Description |
---|
PolyglotClient(String server,
int port)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection to the Polyglot server.
|
void |
convert(String input_filename,
String output_path,
String output_type)
Convert a files format.
|
Vector<String> |
getClients()
Get a list of connected client machines.
|
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.
|
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.
|
static void |
main(String[] args)
Command line polyglot interface.
|
convertLater, waitOnPending
public PolyglotClient(String server, int port)
server
- the name of the Polyglot serverport
- the port used for the connectionpublic Vector<String> getServers()
getServers
in class Polyglot
public Vector<String> getClients()
public TreeSet<String> getOutputs()
getOutputs
in class Polyglot
public TreeSet<String> getOutputs(String input)
getOutputs
in class Polyglot
input
- the input typepublic TreeSet<String> getOutputs(TreeSet<String> inputs)
getOutputs
in class Polyglot
inputs
- the input typespublic IOGraph<String,String> getInputOutputGraph()
getInputOutputGraph
in class Polyglot
public IOGraph<String,String> getDistributedInputOutputGraph()
getDistributedInputOutputGraph
in class Polyglot
public void convert(String input_filename, String output_path, String output_type)
public void close()
public static void main(String[] args)
args
- command line argumentsCopyright © 2014. All rights reserved.