/** * Returns {@code true} if the compartmentType instance which matches the * compartmentTypeID of this compartment is not {@code null}. * * @return {@code true} if the compartmentType instance which matches the * compartmentTypeID of this compartment is not {@code null}. */ @Deprecated public boolean isSetCompartmentTypeInstance() { Model m = getModel(); return m != null ? m.getCompartmentType(compartmentTypeID) != null : false; }
/** * Returns the compartmentType instance in Model for this compartment * compartmentTypeID. Return null if there is no compartmentType * instance which matches this compartmentTypeID. * * @return the compartmentType instance in Model for this compartment * compartmentTypeID. Return null if there is no compartmentType * instance which matches this compartmentTypeID. */ @Deprecated public CompartmentType getCompartmentTypeInstance() { Model m = getModel(); return m != null ? m.getCompartmentType(compartmentTypeID) : null; }
&& (subModel.getCompartmentType(relatedCompartment.getCompartmentType()) == null)) { subModel.addCompartmentType(relatedCompartment.getCompartmentTypeInstance().clone());