Package jSimMacs.data

Examples of jSimMacs.data.ForceField


   * @return
   */
  public ForceField findForceField(String forceField) {
    for (Iterator<ForceField> iterFF = forceFields.iterator(); iterFF
        .hasNext();) {
      ForceField ff = iterFF.next();
      if (ff.getShortName().equalsIgnoreCase(forceField))
        return ff;
    }
    return null;
  }
View Full Code Here


    outputTopolField.setText(data.getOutputTopology());
    outputIndexField.setText(data.getOutputIndex());
    outputCleanField.setText(data.getOutputCleanStructure());
    outputPosreField.setText(data.getOutputIncludeFile());
    if (data.getForceField().length() != 0) {
      ForceField force = JSimLogic.getInstance().findForceField(
          data.getForceField());
      if (force != null)
        forceFieldBox.setSelectedItem(force);
    }
    if (data.getWaterModel().length() != 0)
View Full Code Here

   */
  @Override
  public void startElement(String uri, String localName, String name,
      Attributes attributes) throws SAXException {
    if(name.equalsIgnoreCase(XMLConstants.FORCEFIELD)){
      ForceField field = new ForceField();
      field.setShortName(attributes.getValue(XMLConstants.FORCEFIELDSHORTNAME));
      field.setName(attributes.getValue(XMLConstants.FORCEFIELDNAME));
      forcefields.add(field);
    }
    if(name.equalsIgnoreCase(XMLConstants.WATERMODEL))
      watermodels.add(attributes.getValue(XMLConstants.WATERMODELNAME));
  }
View Full Code Here

TOP

Related Classes of jSimMacs.data.ForceField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.