|
XPUSP - Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--br.usp.ime.xpusp.paxyroj.PaxyrojNative
This class runs the C++ paxyroj algorithm
Field Summary | |
(package private) double |
crossOverProbability
|
(package private) java.lang.String |
database
|
(package private) int |
dumpSolutionFrequency
|
(package private) java.lang.String |
host
|
(package private) java.lang.String |
logFilename
|
(package private) double |
mutationProbability
|
(package private) int |
numberOfGenerations
|
(package private) java.lang.String |
password
|
(package private) int |
populationSize
|
(package private) long |
randomSeed
|
(package private) int |
solutionId
|
(package private) java.lang.String |
user
|
Constructor Summary | |
PaxyrojNative()
Regular constructor |
Method Summary | |
int |
execute()
|
double |
getCrossOverProbability()
Gets the value of crossOverProbability |
java.lang.String |
getDatabase()
Gets the value of database |
int |
getDumpSolutionFrequency()
Gets the value of dumpSolutionFrequency |
java.lang.String |
getHost()
Gets the value of host |
java.lang.String |
getLogFilename()
Gets the value of logFilename |
double |
getMutationProbability()
Gets the value of mutationProbability |
int |
getNumberOfGenerations()
Gets the value of numberOfGenerations |
java.lang.String |
getPassword()
Gets the value of password |
int |
getPopulationSize()
Gets the value of populationSize |
long |
getRandomSeed()
Gets the value of randomSeed |
int |
getSolutionId()
Gets the value of solutionId |
java.lang.String |
getUser()
Gets the value of user |
static void |
main(java.lang.String[] args)
This main method is equivalent to ./gogofirst |
private int |
run(java.lang.String[] args)
This method calls the run method on the dinamically linked library. |
void |
setCrossOverProbability(double argCrossOverProbability)
Sets the value of crossOverProbability |
void |
setDatabase(java.lang.String argDatabase)
Sets the value of database |
void |
setDumpSolutionFrequency(int argDumpSolutionFrequency)
Sets the value of dumpSolutionFrequency |
void |
setHost(java.lang.String argHost)
Sets the value of host |
void |
setLogFilename(java.lang.String argLogFilename)
Sets the value of logFilename |
void |
setMutationProbability(double argMutationProbability)
Sets the value of mutationProbability |
void |
setNumberOfGenerations(int argNumberOfGenerations)
Sets the value of numberOfGenerations |
void |
setPassword(java.lang.String argPassword)
Sets the value of password |
void |
setPopulationSize(int argPopulationSize)
Sets the value of populationSize |
void |
setRandomSeed(long argRandomSeed)
Sets the value of randomSeed |
void |
setSolutionId(int argSolutionId)
Sets the value of solutionId |
void |
setUrl(java.lang.String url)
Sets host and db based on the url on the form: jdbc:mysql://127.0.0.1/xpusp_paxyroj |
void |
setUser(java.lang.String argUser)
Sets the value of user |
Methods inherited from class java.lang.Object |
|
Field Detail |
long randomSeed
int populationSize
int numberOfGenerations
double mutationProbability
double crossOverProbability
java.lang.String host
java.lang.String user
java.lang.String password
java.lang.String database
int dumpSolutionFrequency
int solutionId
java.lang.String logFilename
Constructor Detail |
public PaxyrojNative()
Method Detail |
private int run(java.lang.String[] args)
public long getRandomSeed()
public void setRandomSeed(long argRandomSeed)
argRandomSeed
- Value to assign to this.randomSeedpublic int getPopulationSize()
public void setPopulationSize(int argPopulationSize)
argPopulationSize
- Value to assign to this.populationSizepublic int getNumberOfGenerations()
public void setNumberOfGenerations(int argNumberOfGenerations)
argNumberOfGenerations
- Value to assign to this.numberOfGenerationspublic double getMutationProbability()
public void setMutationProbability(double argMutationProbability)
argMutationProbability
- Value to assign to this.mutationProbabilitypublic double getCrossOverProbability()
public void setCrossOverProbability(double argCrossOverProbability)
argCrossOverProbability
- Value to assign to this.crossOverProbabilitypublic java.lang.String getDatabase()
public void setDatabase(java.lang.String argDatabase)
argDatabase
- Value to assign to this.databasepublic int getDumpSolutionFrequency()
public void setDumpSolutionFrequency(int argDumpSolutionFrequency)
argDumpSolutionFrequency
- Value to assign to this.dumpSolutionFrequencypublic int getSolutionId()
public void setSolutionId(int argSolutionId)
argSolutionId
- Value to assign to this.solutionIdpublic java.lang.String getHost()
public void setHost(java.lang.String argHost)
argHost
- Value to assign to this.hostpublic java.lang.String getUser()
public void setUser(java.lang.String argUser)
argUser
- Value to assign to this.userpublic java.lang.String getPassword()
public void setPassword(java.lang.String argPassword)
argPassword
- Value to assign to this.passwordpublic java.lang.String getLogFilename()
public void setLogFilename(java.lang.String argLogFilename)
argLogFilename
- Value to assign to this.logFilenamepublic int execute()
public void setUrl(java.lang.String url)
public static void main(java.lang.String[] args) throws java.lang.Exception
|
XPUSP - Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |