-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write the first tutorial in the docs restructure
- Loading branch information
Showing
117 changed files
with
674 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ManagerController | ||
----------------- | ||
|
||
.. module:: malcolm.controllers | ||
|
||
.. autoclass:: ManagerController | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RunnableController | ||
------------------ | ||
|
||
.. module:: malcolm.controllers | ||
|
||
.. autoclass:: RunnableController | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. _Attribute: | ||
|
||
Attribute | ||
--------- | ||
|
||
An Attribute holds a value such as an Int, Float or Enum Table representing | ||
the current state of a block. | ||
|
||
Hold the current value of a piece of data of a fixed simple type | ||
like Int, Float, String, Enum, IntArray or Table. You can Get and Subscribe to | ||
changes in all Attributes, and Put to Attributes with a defined setter. In a | ||
client Block, Attributes will mirror the value of the Block acting as a | ||
server, with a Put operation being forwarded to the server Block. For example, | ||
the State of a Block would be an Attribute, as would the CurrentStep of a | ||
scan. | ||
|
||
Subclasses serialize differently. | ||
|
||
.. module:: malcolm.core | ||
|
||
.. autoclass:: Attribute | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. _Block: | ||
|
||
Block | ||
----- | ||
|
||
A Block consists of number of Attributes and Methods: | ||
|
||
An object consisting of a number of Attributes and Methods. It should | ||
be designed to be as small and self contained as possible, and complex logic | ||
should be implemented by nesting Blocks. For example, a detector driver would | ||
be a Block, as would an HDF writer, but there would also be a higher level | ||
detector Block to co-ordinate the low level Blocks. Any Block may be | ||
synchronized among a number of Processes, the Block acting as the server will | ||
perform the logic, and the client copies will expose the same API as the | ||
server Block to the end user. | ||
|
||
.. module:: malcolm.core | ||
|
||
.. autoclass:: Block | ||
:members: |
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
docs/dev/api/core/clientcomms.rst → docs/developer_docs/api/core/clientcomms.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
.. _ClientComms: | ||
|
||
ClientComms | ||
----------- | ||
|
||
ClientComms is used to set up communication for a client with its server | ||
|
||
.. module:: malcolm.core.clientcomms | ||
.. module:: malcolm.core | ||
|
||
.. autoclass:: ClientComms | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _Controller: | ||
|
||
Controller | ||
---------- | ||
|
||
Controller: A State Machine just exposes the list of allowed transitions | ||
between States. The Controller provides the logic that goes behind those | ||
transitions. It creates a number of Methods fixing the external interface of | ||
how to control the blocks, creates some Attributes for monitoring | ||
configuration and runtime variables, and then exposes a number of hooks that | ||
Parts can utilise to be executed and control transition to other states. For | ||
example, there will be an AreaDetectorController with hooks for | ||
PreRunDriverStart, PreRunPluginStart, and Running. | ||
|
||
A Controller implements the logic for changing states and contains Hooks for | ||
allow Parts to run any functions that are relevant to the current transition: | ||
|
||
.. module:: malcolm.core | ||
|
||
.. autoclass:: Controller | ||
:members: |
Oops, something went wrong.