Difference between revisions of "New Representations"

From jecoliwiki
Jump to: navigation, search
(Created page with "Category:Howtos For a description on what representations are please check Representations. If you need a new representation to solve your problem, there are two dif...")
 

Latest revision as of 16:28, 5 March 2013


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