RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
SFRequest.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// Scoring function specific requests
14
15#ifndef _RBTSFREQUEST_H_
16#define _RBTSFREQUEST_H_
17
18#include "rxdock/Request.h"
19
20namespace rxdock {
21
22// Request IDs
23const RequestID ID_REQ_SF_ENABLE = 1;
24const RequestID ID_REQ_SF_DISABLE = 2;
25const RequestID ID_REQ_SF_PARTITION = 3;
26const RequestID ID_REQ_SF_SETPARAM = 4;
27
28class SFEnableRequest : public Request {
29public:
30 // Request to enable a particular named scoring function
31 SFEnableRequest(const std::string &sfName) : Request(ID_REQ_SF_ENABLE) {
32 AddParameter(sfName);
33 }
34};
35
36class SFDisableRequest : public Request {
37public:
38 // Request to disable a particular named scoring function
39 SFDisableRequest(const std::string &sfName) : Request(ID_REQ_SF_DISABLE) {
40 AddParameter(sfName);
41 }
42};
43
45public:
46 // Request to partition all scoring functions to a particular distance
47 SFPartitionRequest(double dist) : Request(ID_REQ_SF_PARTITION) {
48 AddParameter(dist);
49 }
50 // Request to partition a particular named scoring function to a particular
51 // distance
52 SFPartitionRequest(const std::string &sfName, double dist)
53 : Request(ID_REQ_SF_PARTITION) {
54 AddParameter(sfName);
55 AddParameter(dist);
56 }
57};
58
59class SFSetParamRequest : public Request {
60public:
61 // Request to set a named parameter of all scoring functions to a new value
62 SFSetParamRequest(const std::string &paramName, const Variant &paramValue)
63 : Request(ID_REQ_SF_SETPARAM) {
64 AddParameter(paramName);
65 AddParameter(paramValue);
66 }
67 // Request to set a named parameter of a named scoring function to a new value
68 SFSetParamRequest(const std::string &sfName, const std::string &paramName,
69 const Variant &paramValue)
70 : Request(ID_REQ_SF_SETPARAM) {
71 AddParameter(sfName);
72 AddParameter(paramName);
73 AddParameter(paramValue);
74 }
75};
76
77} // namespace rxdock
78
79#endif //_RBTSFREQUEST_H_
Definition Request.h:38
Definition SFRequest.h:36
Definition SFRequest.h:28
Definition SFRequest.h:44
Definition SFRequest.h:59
Definition Variant.h:30