Class BitStringRepresentation
java.lang.Object
com.knezevic.edaf.v3.repr.impl.BitStringRepresentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the genotype is valid in this domain.Creates a random feasible genotype.Repairs a genotype into the feasible domain.Provides a stable summary for logs and reports.type()Representation identifier used in configuration and logs.
-
Constructor Details
-
BitStringRepresentation
public BitStringRepresentation(int length)
-
-
Method Details
-
type
Description copied from interface:RepresentationRepresentation identifier used in configuration and logs.- Specified by:
typein interfaceRepresentation<BitString>
-
random
Description copied from interface:RepresentationCreates a random feasible genotype.- Specified by:
randomin interfaceRepresentation<BitString>
-
isValid
Description copied from interface:RepresentationReturns true if the genotype is valid in this domain.- Specified by:
isValidin interfaceRepresentation<BitString>
-
repair
Description copied from interface:RepresentationRepairs a genotype into the feasible domain.- Specified by:
repairin interfaceRepresentation<BitString>
-
summarize
Description copied from interface:RepresentationProvides a stable summary for logs and reports.- Specified by:
summarizein interfaceRepresentation<BitString>
-