New Representations

From jecoliwiki
Jump to: navigation, search

For a description on what representations are please check Representations.

If you need a new representation to solve your problem, there are two different alternatives:

  • if the representation is a linear list of objects, you can use the LinearRepresentation<T> class, assigning the type <T> with the appropriate class.

In this case, you only need to define a solution factory.

  • if the representation is not linear, you will need to define a class for the representation (that implements the interface IRepresentation) and another one with the factory (implements the ISolutionFactory<T extends IRepresentation> interface).

For examples on how to define representations and solution factories, check the package core.representation.

Personal tools