Package info.mikethomas.jfold
Interface Connection
- All Known Implementing Classes:
ClientConnection
public interface Connection
Connection interface.
- Version:
- 7.5.1
- Author:
- Michael Thomas (mikepthomas@outlook.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidbond(Inet4Address ip, int port, String input) Bond a packet file to a outgoing debug socket connection.voidReturn a configuration indicating if the client has set a user, team or passkey.voiddoCycle()Run one client cycle.voiddownloadCore(String type, URL url) Download a core.voidfinish()Finish all slots.voidfinish(int slot) Finish requested slot.Print application information for requestedInfoItem.Print application information for requestedcategoryandkey.info()List application information.voidinject(Inet4Address ip, int port, String input) Inject a packet file to a listening debug socket.voidDisable specified unit states.intnumSlots()Get number of slots.Get a configuration option.Set a configuration option.options()List all options with their non-default values.options(boolean listDefault, boolean listUnset) List all options with their non-default values.voidpause()Pause all slots.voidpause(int slot) Pause requested slot.intppd()Get current total estimated Points Per Day.Get work unit queue information.voidRequest an ID from the assignment server.voidRequest work server assignment from the assignment server.voidsave()Save the configuration either to the file the configuration was last loaded from.voidSave the configuration either to the specified file.voidshutdown()Shutdown the application.simulationInfo(int slot) Get current simulation information.voidAdd a new slot.voidslotDelete(int slot) Delete a slot.slotInfo()Get slot information.voidslotModify(String id, String type) Modify an existing slot.slotOptions(int slot) Get slot options.voidtrajectory(int slot) Get current protein trajectory.voidTrigger config save after a delay.voidunpause()Unpause all slots.voidunpause(int slot) Unpause requested slot.uptime()Print application uptime.voidWait for all running units to finish.
-
Method Details
-
bond
Bond a packet file to a outgoing debug socket connection.- Parameters:
ip- aInet4Addressobject.port- a int.input- aStringobject.
-
configured
void configured()Return a configuration indicating if the client has set a user, team or passkey. -
doCycle
void doCycle()Run one client cycle. -
downloadCore
Download a core.- Parameters:
type- of coreurl- of core
-
finish
void finish()Finish all slots. -
finish
void finish(int slot) Finish requested slot.- Parameters:
slot- number
-
getInfo
Print application information for requestedcategoryandkey.- Parameters:
category- to return information fromkey- to return information from- Returns:
- String value from information
- Throws:
InfoException- if any.
-
getInfo
Print application information for requestedInfoItem.- Parameters:
infoItem- aInfoItemobject.- Returns:
- a
Stringobject. - Throws:
InfoException- if any.
-
info
List application information.- Returns:
- List
- Throws:
InfoException- if any.
-
inject
Inject a packet file to a listening debug socket. Will wait until packet is processed.- Parameters:
ip- aInet4Addressobject.port- a int.input- aStringobject.
-
maskUnitState
void maskUnitState()Disable specified unit states. -
numSlots
Get number of slots.- Returns:
- integer number of slots
- Throws:
NumSlotsException- if any.
-
option
Get a configuration option.- Parameters:
name- of option- Returns:
- requested option
-
option
Set a configuration option.- Parameters:
name- of optionvalue- to set- Returns:
- requested option
-
options
List all options with their non-default values.- Returns:
- Options
- Throws:
OptionsException- if any.
-
options
List all options with their non-default values.- Parameters:
listDefault- if true defaulted options will be listedlistUnset- if true unset options will also be listed- Returns:
- Options
- Throws:
OptionsException- if any.
-
pause
void pause()Pause all slots. -
pause
void pause(int slot) Pause requested slot.- Parameters:
slot- number
-
ppd
Get current total estimated Points Per Day.- Returns:
- points per day
- Throws:
PpdException- if any.
-
queueInfo
Get work unit queue information.- Returns:
- List Unit
- Throws:
QueueInfoException- if any.
-
requestId
void requestId()Request an ID from the assignment server. -
requestWs
void requestWs()Request work server assignment from the assignment server. -
save
void save()Save the configuration either to the file the configuration was last loaded from. -
save
Save the configuration either to the specified file.- Parameters:
file- to save to
-
shutdown
void shutdown()Shutdown the application. -
simulationInfo
Get current simulation information.- Parameters:
slot- number- Returns:
- SimulationInfo
- Throws:
SimulationInfoException- if any.
-
slotAdd
Add a new slot.- Parameters:
type- of slot
-
slotDelete
void slotDelete(int slot) Delete a slot. If it is running a unit it will be stopped.- Parameters:
slot- number
-
slotInfo
Get slot information.- Returns:
- List Slot
- Throws:
SlotInfoException- if any.
-
slotModify
Modify an existing slot.- Parameters:
id- stringtype- string
-
slotOptions
Get slot options.- Parameters:
slot- a int.- Returns:
- SlotOptions options
- Throws:
SlotOptionsException- if any.
-
trajectory
void trajectory(int slot) Get current protein trajectory.- Parameters:
slot- number
-
triggerSave
void triggerSave()Trigger config save after a delay. -
unpause
void unpause()Unpause all slots. -
unpause
void unpause(int slot) Unpause requested slot.- Parameters:
slot- number
-
uptime
String uptime()Print application uptime.- Returns:
- uptime value in "HH\h MM\m SS\s" format
-
waitForUnits
void waitForUnits()Wait for all running units to finish.
-