$darkmode
DENOPTIM
|
Sends the request to produce a numerical descriptor to a defined socket and receives back the response. More...
Public Member Functions | |
SocketProvidedDescriptor () | |
Constructor for a SocketProvidedDescriptor object. More... | |
DescriptorSpecification | getSpecification () |
Get the specification attribute of socket-based descriptor provider. More... | |
String[] | getParameterNames () |
Gets the parameterNames attribute of the TanimotoMolSimilarity object. More... | |
Object | getParameterType (String name) |
void | setParameters (Object[] params) throws CDKException |
Set the parameters attributes. More... | |
Object[] | getParameters () |
String[] | getDescriptorNames () |
DescriptorValue | calculate (IAtomContainer mol) |
IDescriptorResult | getDescriptorResultType () |
String | getDictionaryTitle () |
Gets the title of this descriptor as it should be in the dictionary.
| |
String | getDictionaryDefinition () |
Get a string that describes the descriptor in detail.Might contain mathematical formulation.
| |
String[] | getDictionaryClass () |
Get the classification of this descriptor.A descriptor can belong to one or more classes simultaneously.
| |
String | getDictionaryTitle () |
Gets the title of this descriptor as it should be in the dictionary. More... | |
String | getDictionaryDefinition () |
Get a string that describes the descriptor in detail. More... | |
String[] | getDictionaryClass () |
Get the classification of this descriptor. More... | |
Static Public Attributes | |
static final String | KEYJSONMEMBERSMILES = "SMILES" |
The key of the JSON member defining the SMILES of the candidate for which the socket server should produce descriptor. More... | |
static final String | KEYJSONMEMBERSCORE = "SCORE" |
The key of the JSON member defining the score/s for the descriptor calculated. More... | |
static final String | KEYJSONMEMBERERR = "ERROR" |
The key of the JSON member defining an error in the calculation of the score. More... | |
Private Attributes | |
final int | version = 1 |
Version identifier. More... | |
String | hostname |
The name of the host or ID address used to communicate with the socket server. More... | |
Integer | port |
The identifier of the port used to communicate with the socket server. More... | |
Static Private Attributes | |
static final String[] | PARAMNAMES |
Name of the input parameters. More... | |
static final String[] | NAMES = {"SocketProvidedDescriptor"} |
NAme of the descriptor produced by this class. More... | |
Sends the request to produce a numerical descriptor to a defined socket and receives back the response.
JSON format is used for communicating information in both directions. This class follows this convention:
Definition at line 64 of file SocketProvidedDescriptor.java.
denoptim.fitness.descriptors.SocketProvidedDescriptor.SocketProvidedDescriptor | ( | ) |
Constructor for a SocketProvidedDescriptor object.
Definition at line 117 of file SocketProvidedDescriptor.java.
DescriptorValue denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate | ( | IAtomContainer | mol | ) |
Definition at line 220 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.getDescriptorNames(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameterNames(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameters(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getSpecification(), denoptim.fitness.descriptors.SocketProvidedDescriptor.hostname, denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERERR, denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERSCORE, denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERSMILES, denoptim.fitness.descriptors.SocketProvidedDescriptor.NAMES, denoptim.fitness.descriptors.SocketProvidedDescriptor.port, and denoptim.fitness.descriptors.SocketProvidedDescriptor.version.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptorTest.testSocketProvidedDescriptor().
String[] denoptim.fitness.descriptors.SocketProvidedDescriptor.getDescriptorNames | ( | ) |
Definition at line 211 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.NAMES.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate().
IDescriptorResult denoptim.fitness.descriptors.SocketProvidedDescriptor.getDescriptorResultType | ( | ) |
Definition at line 356 of file SocketProvidedDescriptor.java.
String[] denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryClass | ( | ) |
Get the classification of this descriptor.A descriptor can belong to one or more classes simultaneously.
Implements denoptim.fitness.IDenoptimDescriptor.
Definition at line 402 of file SocketProvidedDescriptor.java.
String denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryDefinition | ( | ) |
Get a string that describes the descriptor in detail.Might contain mathematical formulation.
DescriptorEngine
Implements denoptim.fitness.IDenoptimDescriptor.
Definition at line 374 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERERR, denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERSCORE, denoptim.fitness.descriptors.SocketProvidedDescriptor.KEYJSONMEMBERSMILES, and denoptim.fitness.descriptors.SocketProvidedDescriptor.PARAMNAMES.
String denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryTitle | ( | ) |
Gets the title of this descriptor as it should be in the dictionary.
Implements denoptim.fitness.IDenoptimDescriptor.
Definition at line 365 of file SocketProvidedDescriptor.java.
String[] denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameterNames | ( | ) |
Gets the parameterNames attribute of the TanimotoMolSimilarity object.
Definition at line 144 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.PARAMNAMES.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate().
Object[] denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameters | ( | ) |
Definition at line 199 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.hostname, and denoptim.fitness.descriptors.SocketProvidedDescriptor.port.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate().
Object denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameterType | ( | String | name | ) |
Definition at line 152 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.PARAMNAMES.
DescriptorSpecification denoptim.fitness.descriptors.SocketProvidedDescriptor.getSpecification | ( | ) |
Get the specification attribute of socket-based descriptor provider.
Definition at line 126 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.hostname, and denoptim.fitness.descriptors.SocketProvidedDescriptor.port.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate().
void denoptim.fitness.descriptors.SocketProvidedDescriptor.setParameters | ( | Object[] | params | ) | throws CDKException |
Set the parameters attributes.
The descriptor takes two parameters: the host name and the port number.
params | the array of parameters |
Definition at line 173 of file SocketProvidedDescriptor.java.
References denoptim.fitness.descriptors.SocketProvidedDescriptor.hostname, and denoptim.fitness.descriptors.SocketProvidedDescriptor.port.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptorTest.setUpSertver().
|
private |
The name of the host or ID address used to communicate with the socket server.
Definition at line 94 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameters(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getSpecification(), and denoptim.fitness.descriptors.SocketProvidedDescriptor.setParameters().
|
static |
The key of the JSON member defining an error in the calculation of the score.
Definition at line 88 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryDefinition(), and denoptim.fitness.descriptors.SocketProvidedDescriptorTest.RequestHandler.run().
|
static |
The key of the JSON member defining the score/s for the descriptor calculated.
Definition at line 82 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryDefinition(), and denoptim.fitness.descriptors.SocketProvidedDescriptorTest.RequestHandler.run().
|
static |
The key of the JSON member defining the SMILES of the candidate for which the socket server should produce descriptor.
Definition at line 76 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryDefinition(), and denoptim.fitness.descriptors.SocketProvidedDescriptorTest.RequestHandler.run().
|
staticprivate |
NAme of the descriptor produced by this class.
Definition at line 110 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), and denoptim.fitness.descriptors.SocketProvidedDescriptor.getDescriptorNames().
|
staticprivate |
Name of the input parameters.
Definition at line 104 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.getDictionaryDefinition(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameterNames(), and denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameterType().
|
private |
The identifier of the port used to communicate with the socket server.
Definition at line 99 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getParameters(), denoptim.fitness.descriptors.SocketProvidedDescriptor.getSpecification(), and denoptim.fitness.descriptors.SocketProvidedDescriptor.setParameters().
|
private |
Version identifier.
Definition at line 70 of file SocketProvidedDescriptor.java.
Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate().