1) Local Test Mechanism
python repy.py restrictions.test <Your repy files>
2) Login to the Seattle
- python seash.py
- !> loadkeys <username> # load the the key information of the user
- !> as <username> # login as the user
- <username>@ !>
a) browse
# Browse the available resources in the Seattle.
b) on browsegood
# Use the resources which are working in good condition
c) run <Your repy files in your local path>
# Run the program
d) show log
# Show the result of what the program have executed
e) list
# List the information of the vessel that you own or control
4) Specific Functions & Variables in Seattle
You can refer to the webpage:
https://seattle.poly.edu/wiki/RepyApi#waitforconnlocaliplocalportfunction
mycontext: It is a dictionary type provided for the global variables
eg: mycontext['global_variables'] = 'This is a global varible'
settimer(waittime, function, arg): Set a timer that when it expires will start a new thread to call a function with a set of arguments. The thread is charged to your problem when you set the timer instead of when the timer fires. This function returns a timer handle that may be used to cancel the timer before the thread is started.
You can refer to the webpage:
https://seattle.poly.edu/wiki/RepyApi#waitforconnlocaliplocalportfunction
mycontext: It is a dictionary type provided for the global variables
eg: mycontext['global_variables'] = 'This is a global varible'
settimer(waittime, function, arg): Set a timer that when it expires will start a new thread to call a function with a set of arguments. The thread is charged to your problem when you set the timer instead of when the timer fires. This function returns a timer handle that may be used to cancel the timer before the thread is started.
No comments:
Post a Comment