this.verhCodes = new LinkedList[autAnzahl];
this.earlErk = earl;
this.scriptInt = scriInt;
if (params.getPlugIDList().contains(new EAPlugin().id())) {
this.initAuts(autAnzahl);
}
if (autAnzahl == 0) {
StaticMethods.log(StaticMethods.LOG_ERROR,
"Keine Startautomaten fuer Roboter "
+ ident
+ " angegeben.",
params);
}
this.selektiert = sel;
this.befehle = new ArrayList<Integer>();
this.id = ident;
this.rand = zufall;
double alpha = wink * Math.PI / 180;
this.timerStart = null;
this.aktBefehle = new ArrayList<Integer>();
this.aktBefehlePar = new ArrayList<Double>();
this.aktBewegung = 0;
this.aktBewegungPar = 0;
this.sensoren = new int[256];
this.position = new Vector2D(x, y);
this.ausd = new Vector2D(xAusd, yAusd);
this.blickrichtung = new Vector2D(
Math.cos(alpha) * this.pars.getParValueDouble(eas.statistics.ConstantsStatistics.VERZERR_ATTR),
Math.sin(alpha) * this.pars.getParValueDouble(eas.statistics.ConstantsStatistics.VERZERR_ATTR));
this.winkel = this.gultWinkel(wink);
this.umg = umgebung;
this.eckPunkte = new Vector2D[4];
this.setEckpVeraendert();
this.sensAnzIR = ConstantsSimulation.SENS_RICHT.length;
this.absSensorWink = new double[this.sensAnzIR];
this.sensOeffn = ConstantsSimulation.SENS_OEFFN;
this.relSensorWink = new double[this.sensAnzIR];
this.alleAbsSensRicht = new Vector2D[ConstantsSimulation.ABSTUFUNGEN]
[this.sensAnzIR];
for (int i = 0; i < this.sensAnzIR; i++) {
this.relSensorWink[i] = ConstantsSimulation.SENS_RICHT[i];
}
this.setzeSensorRicht();
this.mut = mutation;
// if (params != null) {
if (params.getPlugIDList().contains(new EAPlugin().id())) {
this.fitZyklen = params.getParValueLong(EAPlugin.FIT_ZYK_ATTR);
this.fitRedZyklen = params
.getParValueLong(EAPlugin.FIT_EVAP_ZYK_ATTR);
this.fitRedWert = params
.getParValueDouble(EAPlugin.FIT_EVAP_VAL_ATTR);