package org.opensha.sha.imr.attenRelImpl;

import org.opensha.commons.data.NamedObjectAPI;
import org.opensha.commons.param.event.ParameterChangeEvent;
import org.opensha.commons.param.event.ParameterChangeListener;
import org.opensha.sha.imr.AttenuationRelationship;
import org.opensha.sha.imr.ScalarIntensityMeasureRelationshipAPI;

public class BW_1997_AttenRel extends AttenuationRelationship implements
ScalarIntensityMeasureRelationshipAPI,
NamedObjectAPI, ParameterChangeListener {
	public double getMean(double magnitude, double epicentralDistance) {
		double result = 0.0;
		return result;
	} // getMean()

	@Override
	protected void initEqkRuptureParams() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void initPropagationEffectParams() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void initSiteParams() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void initSupportedIntensityMeasureParams() {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void setPropagationEffectParams() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public double getMean() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public double getStdDev() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getShortName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setParamDefaults() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void parameterChange(ParameterChangeEvent event) {
		// TODO Auto-generated method stub
		
	}

} // class BW_1997_AttenRel()

@@ -487,99 +487,591 @@
  %7B%0A%09
-public double getMean(double magnitude, double epicentralDistance) %7B%0A%09%09double result = 0.0;
+%0A%09/**%0A%09 * Name of equation:%0A%09 * Bakun and Wentworth (1997) %5BSubduction zones%5D%0A%09 * Formula:%0A%09 * Immi = 3.67 + 1.17 magnitude - 3.19 log(epicentralDistance)%0A%09 * @param magnitude%0A%09 * @param epicentralDistance%0A%09 * @return Immi%0A%09 */%0A%09public double getMean(double magnitude, double epicentralDistance) %7B%0A%09%09double result = 0.0;%0A%09%09final float offset = 3.67f;%0A%09%09final float coefficient1 = 1.17f;%0A%09%09final float coefficient2 = 3.19f;%0A%09%09// Immi = 3.67 + 1.17 magnitude - 3.19 log(epicentralDistance) %0A%09%09result = offset + coefficient1 * magnitude - coefficient2 * Math.log10(epicentralDistance); 
 %0A%09%09r

the formula of the equation