Input/Output Drivers

File Input Drivers

class cis_interface.drivers.FileInputDriver.FileInputDriver(name, args, **kwargs)[source]

Class that sends messages read from a file.

Parameters:
  • name (str) – Name of the queue that messages should be sent to.
  • args (str) – Path to the file that messages should be read from.
  • **kwargs – Additional keyword arguments are passed to the parent class.

File Output Drivers

class cis_interface.drivers.FileOutputDriver.FileOutputDriver(name, args, **kwargs)[source]

Class to handle output of received messages to a file.

Parameters:
  • name (str) – Name of the output queue to receive messages from.
  • args (str) – Path to the file that messages should be written to.
  • **kwargs – Additional keyword arguments are passed to the parent class.

General Input Drivers

class cis_interface.drivers.InputDriver.InputDriver(name, args, **kwargs)[source]

Driver for receiving input from another model’s comm via a local comm.

Parameters:
  • name (str) – The name of the local message comm that the driver should connect to.
  • args (str) – The name of the other message comm that the driver should connect to.
  • **kwargs – Additional keyword arguments are passed to parent class.

General Output Drivers

class cis_interface.drivers.InputDriver.InputDriver(name, args, **kwargs)[source]

Driver for receiving input from another model’s comm via a local comm.

Parameters:
  • name (str) – The name of the local message comm that the driver should connect to.
  • args (str) – The name of the other message comm that the driver should connect to.
  • **kwargs – Additional keyword arguments are passed to parent class.

Input/Output Drivers

class cis_interface.drivers.ClientDriver.ClientDriver(model_request_name, request_name=None, comm=None, comm_address=None, **kwargs)[source]

Alias for ClientRequestDriver.

class cis_interface.drivers.ServerDriver.ServerDriver(model_request_name, request_name=None, comm=None, comm_address=None, **kwargs)[source]

Alias for ServerRequestDriver.

class cis_interface.drivers.RMQClientDriver.RMQClientDriver(*args, **kwargs)[source]

Class for handling an RMQ client.

Parameters:
  • *args – Arguments are passed to parent class.
  • **kwargs – Keyword arguments are passed to parent class.
class cis_interface.drivers.RMQServerDriver.RMQServerDriver(*args, **kwargs)[source]

Class for handling an RMQ server.

Parameters:
  • *args – Arguments are passed to parent class.
  • **kwargs – Keyword arguments are passed to parent class.