package utils{ public class OggettoReazione { private var _id : Number; private var _riga: Number; private var _colonna: Number; private var _posSxDx : String; //alla sinistra o alla destra rispetto al centro dello schermo private var _tipoSeq1 : String; //se target o distrattore private var _tipoSeq2 : String; private var _tipoSeq3 : String; private var _tempoRisposta : Number =-1; public function OggettoReazione(id : Number, riga: Number, col : Number, pos: String = null, tipoS1 : String = null, tipoS2 : String = null, tipoS3 : String = null) { // constructor code _id = id; _riga = riga; _colonna = col; if(pos!=null) _posSxDx = pos; if(tipoS1!=null) _tipoSeq1 = tipoS1; if(tipoS2!=null) _tipoSeq2 = tipoS2; if(tipoS3!=null) _tipoSeq3 = tipoS3; } public function get positionSxDx() : String { return _posSxDx; } public function get tipoSequenza1() : String { return _tipoSeq1; } public function get tipoSequenza2() : String { return _tipoSeq2; } public function get tipoSequenza3() : String { return _tipoSeq3; } public function set tempoRisposta(t: Number) { _tempoRisposta = t; } } }