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, setOrder
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:S3Map
Set the names of the traits. -
getColors
Description copied from class:S3Map
Get the colors of the traits. -
data2S3
Description copied from class:S3Map
Convert the data array to cartesian coordinates of point on simplex. The conversion observes the selection and order of traits.Notes:
- The array
s
includes 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
-