public int getActionOffset(Action a){ Integer offset = this.actionOffset.get(a); if(offset == null){ offset = this.actionOffset.size(); this.actionOffset.put(a, offset); this.expandStateActionWeights(this.currentStateFeatures.length); } return offset; }