Skip to content
Snippets Groups Projects
Commit 5b0dbbff authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

ground motion mutable field placeholders

parent 9a82a4f7
No related branches found
No related tags found
1 merge request!252Conditional spectrum (interim updates)
......@@ -19,6 +19,12 @@ public interface GroundMotion {
*/
public double sigma();
// public double rate();
//
// public double epsilon();
//
// public void setDisaggData(double rate, double epsilon);
/**
* Create a new ground motion container.
*
......@@ -29,6 +35,9 @@ public interface GroundMotion {
public static GroundMotion create(double mean, double sigma) {
return new GroundMotion() {
// private double rate;
// private double epsilon;
@Override
public double mean() {
return mean;
......@@ -39,6 +48,22 @@ public interface GroundMotion {
return sigma;
}
// @Override
// public double rate() {
// return rate;
// }
//
// @Override
// public double epsilon() {
// return epsilon;
// }
//
// @Override
// public void setDisaggData(double rate, double epsilon) {
// this.rate = rate;
// this.epsilon = epsilon;
// }
@Override
public String toString() {
return new StringBuilder(getClass().getSimpleName())
......@@ -49,6 +74,7 @@ public interface GroundMotion {
.append("]")
.toString();
}
};
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment