Skip to content

tmtsoftware/aps-computation

Repository files navigation

computation

This project implements an HCD (Hardware Control Daemon) and an Assembly using TMT Common Software (CSW) APIs.

Subprojects

  • aps-computationassembly - an assembly that talks to the computation HCD
  • aps-computationhcd - an HCD that talks to the computation hardware
  • aps-computationdeploy - for starting/deploying HCDs and assemblies
  • aps-computationclient - for sending commands to the assembly for test purposes

Upgrading CSW Version

project/build.properties file contains csw.version property which indicates CSW version number. Updating csw.version property will make sure that CSW services as well as library dependency for HCD and Assembly modules are using same CSW version.

Build Instructions

The build is based on sbt and depends on libraries generated from the csw project.

See here for instructions on installing sbt.

Prerequisites for running Components

The CSW services need to be running before starting the components. This is done by starting the csw-services. If you are not building csw from the sources, you can run csw-services as follows:

  • Install coursier using steps described here and add TMT channel.
  • Run cs install csw-services. This will create an executable file named csw-services in the default installation directory.
  • Run csw-services start command to start all the CSW services i.e. Location, Config, Event, Alarm and Database Service
  • Run csw-services --help to get more information.

Note: while running the csw-services use the csw version from project/build.properties

Running the HCD,Assembly and Client App

Run the container cmd script with arguments. For example:

  • Start the HCD and assembly in a container using the Scala implementations:
sbt "aps-computationdeploy/runMain aps.computationdeploy.ComputationContainerCmdApp --local ./src/main/resources/JComputationContainer.conf"
  • Run the client app
sbt "aps-computationclient/run"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published