Package geneticalgorithm
Class PreciseModelCountingSpecificationFitness
- java.lang.Object
-
- geneticalgorithm.PreciseModelCountingSpecificationFitness
-
- All Implemented Interfaces:
com.lagodiuk.ga.Fitness<SpecificationChromosome,Double>
public class PreciseModelCountingSpecificationFitness extends Object implements com.lagodiuk.ga.Fitness<SpecificationChromosome,Double>
-
-
Field Summary
Fields Modifier and Type Field Description BigIntegeroriginalNegationNumOfModelsBigIntegeroriginalNumOfModelsowl.ltl.tlsf.TlsforiginalSpecificationSpecificationChromosome.SPEC_STATUSoriginalStatus
-
Constructor Summary
Constructors Constructor Description PreciseModelCountingSpecificationFitness(owl.ltl.tlsf.Tlsf originalSpecification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doublecalculate(SpecificationChromosome chromosome)Assume that chromosome1 is better than chromosome2
fit1 = calculate(chromosome1)
fit2 = calculate(chromosome2)
So the following condition must be true
fit1.compareTo(fit2) <= 0doublecompute_lost_models_porcentage(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined)voidcompute_status(SpecificationChromosome chromosome)doublecompute_syntactic_distance_size(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined)doublecompute_won_models_porcentage(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined)
-
-
-
Field Detail
-
originalSpecification
public owl.ltl.tlsf.Tlsf originalSpecification
-
originalStatus
public SpecificationChromosome.SPEC_STATUS originalStatus
-
originalNumOfModels
public BigInteger originalNumOfModels
-
originalNegationNumOfModels
public BigInteger originalNegationNumOfModels
-
-
Constructor Detail
-
PreciseModelCountingSpecificationFitness
public PreciseModelCountingSpecificationFitness(owl.ltl.tlsf.Tlsf originalSpecification) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
-
Method Detail
-
calculate
public Double calculate(SpecificationChromosome chromosome)
Description copied from interface:com.lagodiuk.ga.FitnessAssume that chromosome1 is better than chromosome2
fit1 = calculate(chromosome1)
fit2 = calculate(chromosome2)
So the following condition must be true
fit1.compareTo(fit2) <= 0- Specified by:
calculatein interfacecom.lagodiuk.ga.Fitness<SpecificationChromosome,Double>
-
compute_status
public void compute_status(SpecificationChromosome chromosome) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
compute_lost_models_porcentage
public double compute_lost_models_porcentage(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
compute_won_models_porcentage
public double compute_won_models_porcentage(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
compute_syntactic_distance_size
public double compute_syntactic_distance_size(owl.ltl.tlsf.Tlsf original, owl.ltl.tlsf.Tlsf refined)
-
-