Module: EvowareConfigSpec

Module for converting an EvowareConfigSpec to a general Roboliq configuration protocol.

Source:

Methods


<inner> handleRomas(spec)

Create the predictates to be added to Roboliq's robot configuration for Evoware's RoMa relationships.

Expect specs of this form: {<transporter>: {<program>: [site names]}}

Parameters:
Name Type Description
spec Object
Properties
Name Type Description
romas Array.<Roma>
Source:

<inner> makeProtocol(spec [, data])

Convert an EvowareConfigSpec into the format of a Roboliq Protocol. This function exists, because it is much simpler to write an EvowareConfigSpec than the equivalent Protocol.

Parameters:
Name Type Argument Description
spec EvowareConfigSpec

specification of an Evoware robot configuration

data Object <optional>

(not currently used) protocol data loaded before this configuration

Source:
Returns:
  • an Evoware robot configuration in the format of a Protocol.
Type
Protocol

<inner> validate(evowareSpec)

Validates a EvowareConfigSpec against the JSON schema.

Parameters:
Name Type Description
evowareSpec EvowareConfigSpec

evoware config spec

Source:
Returns:
  • returns the validation results from the npm package jsonschema
Type
object