public void addElement ( String str , String type , double one , double two , boolean interval , boolean isDefault ) throws NotationException { this . elements . add ( ValidationMethod . decideWhichMonomerNotationInGroup ( str , type , one , two , interval , isDefault ) ) ; }
method to add a single element to the group