Package infosapient.opr

Source Code of infosapient.opr.FzyOprAND

package infosapient.opr;
/*
* Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved.
*
* LICENSE TO USE THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE 0.5
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
* RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
* The license may be viewed at:
* http://www.opensource.org/licenses/cpl.html
*/
import infosapient.system.FzySet;
import java.rmi.server.ObjID;

/**
* @author: Michael McConnell
* @version $Revision: 1.1.1.1 $
*/
public class FzyOprAND extends FzyOperator  {
  static final long serialVersionUID = -8406659023649336470L;
  public FzyOprAND() {
  myID = new ObjID();
  }
  public void apply(double d0,double d1) {
  setSolutionDOM(Math.max(Math.min(d0, d1), 0.0));
  }
  public String getName() {
  return("and");
  }
}
TOP

Related Classes of infosapient.opr.FzyOprAND

TOP
Copyright © 2018 www.massapi.com. 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.