/** * * @return the value of the boundaryCondition Boolean if it is set, false * otherwise. */ public boolean isBoundaryCondition() { return isSetBoundaryCondition() ? boundaryCondition : false; }
/** * Returns the boundaryCondition Boolean of this Species. * * @return the boundaryCondition Boolean of this Species. */ public boolean getBoundaryCondition() { return isSetBoundaryCondition() ? boundaryCondition : false; }
@Override public boolean accepts(Object o) { if (o instanceof Species) { Species s = (Species) o; return s.isSetBoundaryCondition() && s.getBoundaryCondition(); } return false; }
@Override public int hashCode() { final int prime = 997; int hashCode = super.hashCode(); hashCode += prime * Boolean.valueOf(amount).hashCode(); if (isSetBoundaryCondition()) { hashCode += prime * boundaryCondition.hashCode(); } if (isSetHasOnlySubstanceUnits()) { hashCode += prime * hasOnlySubstanceUnits.hashCode(); } if (isSetCharge()) { hashCode += prime * charge.hashCode(); } if (isSetSpeciesType()) { hashCode += prime * getSpeciesType().hashCode(); } if (isSetCompartment()) { hashCode += prime * getCompartment().hashCode(); } if (isSetSpatialSizeUnits()) { hashCode += prime * getSpatialSizeUnits().hashCode(); } if (isSetConversionFactor()) { hashCode += prime * getConversionFactor().hashCode(); } return hashCode; }
@Override public boolean check(ValidationContext ctx, Species c) { // id 'compartment', 'hasOnlySubstanceUnits', 'boundaryCondition'and constant are mandatory attributes if (!c.isSetId() || !c.isSetConstant() || !c.isSetHasOnlySubstanceUnits() || !c.isSetBoundaryCondition() || !c.isSetCompartment()) { return false; } return super.check(ctx, c); } };
StringTools.toString(en, getInitialAmount())); if (isSetBoundaryCondition()) { attributes.put(TreeNodeChangeEvent.boundaryCondition, Boolean.toString(getBoundaryCondition()));
super(species); if (species.isSetBoundaryCondition()) { setBoundaryCondition(species.getBoundaryCondition()); } else {
if (equals) { Species s = (Species) object; equals &= s.isSetBoundaryCondition() == isSetBoundaryCondition(); if (equals && isSetBoundaryCondition()) { equals &= s.getBoundaryCondition() == getBoundaryCondition();