/** * updates the Cas, setting the indexed value to the passed in Java double value. * @see org.apache.uima.cas.DoubleArrayFS#set(int, double) * @param addr low level CAS FS reference * @param i the index * @param v the value */ public void set(int addr, int i, double v) { if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(addr, i, v, true); if (lowLevelArrayBoundChecks) casImpl.checkArrayBounds(addr, i); ll_cas.ll_setDoubleArrayValue(addr, i, v); }
/** * @see org.apache.uima.cas.DoubleArrayFS#set(int , double) */ public void set(int i, double v) { jcasType.casImpl.checkArrayBounds(addr, i); jcasType.ll_cas.ll_setDoubleArrayValue(addr, i, v); }
/** * @see org.apache.uima.cas.DoubleArrayFS#copyFromArray(double[], int, int, int) */ public void copyFromArray(double[] src, int srcOffset, int destOffset, int length) { jcasType.casImpl.checkArrayBounds(addr, destOffset, length); for (int i = 0; i < length; i++) { jcasType.ll_cas.ll_setDoubleArrayValue(addr, i + destOffset, src[i + srcOffset]); } }
/** * @see org.apache.uima.cas.DoubleArrayFS#copyFromArray(String[], int, int, int) */ public void copyFromArray(String[] src, int srcOffset, int destOffset, int length) { jcasType.casImpl.checkArrayBounds(addr, destOffset, length); for (int i = 0; i < length; i++) { jcasType.ll_cas.ll_setDoubleArrayValue(addr, i + destOffset, Double.parseDouble(src[i + srcOffset])); } }
/** @generated */ public void setPart(int addr, int i, double v) { if (featOkTst && casFeat_part == null) jcas.throwFeatMissing("part", "org.apache.uima.textmarker.type.Statistics"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_part), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_part), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_part), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setScores(int addr, int i, double v) { if (featOkTst && casFeat_scores == null) jcas.throwFeatMissing("scores", "ch.epfl.bbp.uima.types.Topic"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_scores), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_scores), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_scores), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setWeights(int addr, int i, double v) { if (featOkTst && casFeat_Weights == null) jcas.throwFeatMissing("Weights", "de.julielab.jcore.types.DocumentTopics"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Weights), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_Weights), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_Weights), i, v); }
/** @generated */ public void setTotal(int addr, int i, double v) { if (featOkTst && casFeat_total == null) jcas.throwFeatMissing("total", "org.apache.uima.textmarker.type.Statistics"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_total), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_total), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_total), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setPart(int addr, int i, double v) { if (featOkTst && casFeat_part == null) jcas.throwFeatMissing("part", "org.apache.uima.ruta.type.Statistics"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_part), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_part), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_part), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setProbability(int addr, int i, double v) { if (featOkTst && casFeat_probability == null) jcas.throwFeatMissing("probability", "ch.epfl.bbp.uima.types.TopicDistribution"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_probability), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_probability), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_probability), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setTotal(int addr, int i, double v) { if (featOkTst && casFeat_total == null) jcas.throwFeatMissing("total", "org.apache.uima.ruta.type.Statistics"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_total), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_total), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_total), i, v); }
/** @generated * @param addr low level Feature Structure reference * @param i index of item in the array * @param v value to set */ public void setTopicProportions(int addr, int i, double v) { if (featOkTst && casFeat_TopicProportions == null) jcas.throwFeatMissing("TopicProportions", "de.tudarmstadt.ukp.dkpro.core.mallet.type.TopicDistribution"); if (lowLevelTypeChecks) ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_TopicProportions), i, v, true); jcas.checkArrayBounds(ll_cas.ll_getRefValue(addr, casFeatCode_TopicProportions), i); ll_cas.ll_setDoubleArrayValue(ll_cas.ll_getRefValue(addr, casFeatCode_TopicProportions), i, v); }
/** indexed setter for Weights - sets an indexed value - Vector of weights denoting the semantical descriptivity of one word for the respective topic * @generated * @param i index in the array to set * @param v value to set into the array */ public void setWeights(int i, double v) { if (DocumentTopics_Type.featOkTst && ((DocumentTopics_Type)jcasType).casFeat_Weights == null) jcasType.jcas.throwFeatMissing("Weights", "de.julielab.jcore.types.DocumentTopics"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DocumentTopics_Type)jcasType).casFeatCode_Weights), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((DocumentTopics_Type)jcasType).casFeatCode_Weights), i, v);}
/** indexed setter for part - sets an indexed value - * @generated * @param i index in the array to set * @param v value to set into the array */ public void setPart(int i, double v) { if (Statistics_Type.featOkTst && ((Statistics_Type)jcasType).casFeat_part == null) jcasType.jcas.throwFeatMissing("part", "org.apache.uima.ruta.type.Statistics"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_part), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_part), i, v);} }
/** indexed setter for TopicProportions - sets an indexed value - Each topic's proportion in the document. * @generated * @param i index in the array to set * @param v value to set into the array */ public void setTopicProportions(int i, double v) { if (TopicDistribution_Type.featOkTst && ((TopicDistribution_Type)jcasType).casFeat_TopicProportions == null) jcasType.jcas.throwFeatMissing("TopicProportions", "de.tudarmstadt.ukp.dkpro.core.mallet.type.TopicDistribution"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((TopicDistribution_Type)jcasType).casFeatCode_TopicProportions), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((TopicDistribution_Type)jcasType).casFeatCode_TopicProportions), i, v);}
/** indexed setter for probability - sets an indexed value - * @generated * @param i index in the array to set * @param v value to set into the array */ public void setProbability(int i, double v) { if (TopicDistribution_Type.featOkTst && ((TopicDistribution_Type)jcasType).casFeat_probability == null) jcasType.jcas.throwFeatMissing("probability", "ch.epfl.bbp.uima.types.TopicDistribution"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((TopicDistribution_Type)jcasType).casFeatCode_probability), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((TopicDistribution_Type)jcasType).casFeatCode_probability), i, v);} }
/** indexed setter for total - sets an indexed value - * @generated */ public void setTotal(int i, double v) { if (Statistics_Type.featOkTst && ((Statistics_Type)jcasType).casFeat_total == null) jcasType.jcas.throwFeatMissing("total", "org.apache.uima.textmarker.type.Statistics"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_total), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_total), i, v);}
/** indexed setter for part - sets an indexed value - * @generated */ public void setPart(int i, double v) { if (Statistics_Type.featOkTst && ((Statistics_Type)jcasType).casFeat_part == null) jcasType.jcas.throwFeatMissing("part", "org.apache.uima.textmarker.type.Statistics"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_part), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_part), i, v);} }
/** indexed setter for total - sets an indexed value - * @generated * @param i index in the array to set * @param v value to set into the array */ public void setTotal(int i, double v) { if (Statistics_Type.featOkTst && ((Statistics_Type)jcasType).casFeat_total == null) jcasType.jcas.throwFeatMissing("total", "org.apache.uima.ruta.type.Statistics"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_total), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Statistics_Type)jcasType).casFeatCode_total), i, v);}
/** indexed setter for scores - sets an indexed value - * @generated * @param i index in the array to set * @param v value to set into the array */ public void setScores(int i, double v) { if (Topic_Type.featOkTst && ((Topic_Type)jcasType).casFeat_scores == null) jcasType.jcas.throwFeatMissing("scores", "ch.epfl.bbp.uima.types.Topic"); jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Topic_Type)jcasType).casFeatCode_scores), i); jcasType.ll_cas.ll_setDoubleArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Topic_Type)jcasType).casFeatCode_scores), i, v);}