elemConcept.appendChild(elemDescription);
}
if (c.getConceptActivator() != null) {
if (c.getConceptActivator() instanceof SignumActivator) {
SignumActivator act = (SignumActivator) c.getConceptActivator();
elemConcept.setAttribute("act", "SIGNUM");
Element paramElem = doc.createElement("param");
paramElem.setAttribute("name", "threshold");
paramElem.setAttribute("value", Double.toString(act.getThreshold()));
elemConcept.appendChild(paramElem);
} else if (c.getConceptActivator() instanceof SigmoidActivator) {
SigmoidActivator act = (SigmoidActivator) c.getConceptActivator();
elemConcept.setAttribute("act", "SIGMOID");
Element paramElem = doc.createElement("param");
paramElem.setAttribute("name", "k");
paramElem.setAttribute("value", Double.toString(act.getK()));
elemConcept.appendChild(paramElem);
} else if (c.getConceptActivator() instanceof HyperbolicTangentActivator) {
HyperbolicTangentActivator act = (HyperbolicTangentActivator) c
.getConceptActivator();
elemConcept.setAttribute("act", "TANH");
Element paramElem = doc.createElement("param");
paramElem.setAttribute("name", "threshold");
paramElem.setAttribute("value", Double.toString(act.getThreshold()));
elemConcept.appendChild(paramElem);
}
}
if (c.getInput() != null) {
elemConcept.setAttribute("input", c.getInput().toString());