Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.apo.nmsu.edu/Telescopes/twistedActor/standardCommands.html
Дата изменения: Fri Jul 20 00:02:04 2012 Дата индексирования: Sat Apr 9 23:27:01 2016 Кодировка: Поисковые слова: apollo 11 |
TwistedActor.Actor is core code for writing an actor: an instrument control computer (ICC) or hub-based script that does something useful. This manual describes the standard commands and keywords that any actor based on TwistedActor.Actor will support.
All actors based on TwistedActor typically support the following standard commands (plus additional device-specific commands documented in that actor's manual). Commands are not case-sensitive.
Connect one or more devices (if not already connected). The default is to connect all devices that are not already connected.
Disconnect one or more devices (if not already disconnected). The default is to disconnect all devices that are not already disconnected.
Print a brief description of each command.
Log yourself out.
Return a short message to indicate that the controller is alive.
Print current status, including user information, the connection state of any devices that are not connected and any additional information that is specific to the actor.
Turn debugging messages on or off (for all users).
Display the reference count for each object (in descending reference count) using keyword refCount.
Enable debugging via WingIDE (simply imports wingdbstubs).
Keyword data is output whenever the state of the actor changes. All actors based on TwistedActor output the following standard keywords (in addition to device-specific keywords described in the manual for that actor).
Notes:
State of connection to the dev hardware controller. State is one of Connecting, Authorizing, Connected, Disconnecting, Failing, Disconnected or Failed (the states of an RO.Comm.TCPConnection object). Reason is the reason it got to this state ("" if no reason specified).
The number of users presently connected (a single integer)
The reference count for an object.
The command was superseded by some other command.
Text message (intended for debugging and human consumption).
The command timed out.
The command verb (the first word of your command string) is not supported by this actor.
An variable-length array containing two entries for each user who is presently connected: userID and the IP address. The user ID is an integer and the address is a string. The userIDs will appear in sorted order but are not necessarily contiguous.
The version number (as a string) of the actor.
Your own userID.