Input/Output Drivers

File Input Drivers

class yggdrasil.drivers.FileInputDriver.FileInputDriver(*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 yggdrasil.drivers.FileOutputDriver.FileOutputDriver(*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 yggdrasil.drivers.InputDriver.InputDriver(*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 yggdrasil.drivers.OutputDriver.OutputDriver(*args, **kwargs)[source]

Driver for sending output to 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 comme that the driver should connect to.

  • **kwargs – Additional keyword arguments are passed to parent class.

RPC Drivers