Package org.evoludo.simulator.modules
Class Centipede.CentiMap
- All Implemented Interfaces:
BasicTooltipProvider
- Enclosing class:
Centipede
The CentiMap class provides a mapping of the centipede game to a pair of
\(S_3\) simplices for the first mover and second mover roles.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class S3Map
data2S3, getLabel, getName, getNames, getOrder, getRole, getTooltipAt, s32Data, setColors, setOrderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BasicTooltipProvider
getTooltipAt
-
Constructor Details
-
CentiMap
public CentiMap(int role) Constructs a new CentiMap instance for the given role.- Parameters:
role- the role of the player
-
-
Method Details
-
setNames
Description copied from class:S3MapSet the names of the traits. -
getColors
Description copied from class:S3MapGet the colors of the traits. -
data2S3
Description copied from class:S3MapConvert the data array to cartesian coordinates of point on simplex. The conversion observes the selection and order of traits.Notes:
- The array
sincludes the time ats[0]and should not be altered. - The point on simplex is returned in scaled user coordinates in
[0,1]. - In order to deal with projections onto \(S_3\) subspaces the coordinates
do not need to sum up to
1.0.
- The array
-