/** {@inheritDoc} */ @Override public void save(final OutputStream os, final Object obj) { final EncogWriteHelper out = new EncogWriteHelper(os); final ART1 art1 = (ART1) obj; out.addSection("ART1"); out.addSubSection("PARAMS"); out.addProperties(art1.getProperties()); out.addSubSection("NETWORK"); out.writeProperty(ART.PROPERTY_A1, art1.getA1()); out.writeProperty(ART.PROPERTY_B1, art1.getB1()); out.writeProperty(ART.PROPERTY_C1, art1.getC1()); out.writeProperty(ART.PROPERTY_D1, art1.getD1()); out.writeProperty(PersistConst.PROPERTY_F1_COUNT, art1.getF1Count()); out.writeProperty(PersistConst.PROPERTY_F2_COUNT, art1.getF2Count()); out.writeProperty(ART.PROPERTY_NO_WINNER, art1.getNoWinner()); out.writeProperty(ART.PROPERTY_L, art1.getL()); out.writeProperty(ART.PROPERTY_VIGILANCE, art1.getVigilance()); out.writeProperty(PersistConst.PROPERTY_WEIGHTS_F1_F2, art1.getWeightsF1toF2()); out.writeProperty(PersistConst.PROPERTY_WEIGHTS_F2_F1, art1.getWeightsF2toF1()); out.flush(); }