Skip to content
Snippets Groups Projects
Commit 6ad9775d authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Format

parent 14c2b497
No related branches found
No related tags found
1 merge request!275Resolves: Lambda Parallelization - Lambda Function for GroundMotionsToCurves
...@@ -74,44 +74,6 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler { ...@@ -74,44 +74,6 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler {
writer.close(); writer.close();
} }
/**
* Single hazard curve from Lambda function.
*
* @see GroundMotionToCurveLambda#groundMotionsToCurvesHandler
*/
static class HazardCurve {
private final Imt imt;
private final Gmm gmm;
private final XySequence curve;
private HazardCurve(Imt imt, Gmm gmm, XySequence curve) {
this.imt = imt;
this.gmm = gmm;
this.curve = curve;
}
/**
* Returns the Imt associated with the hazard curve.
*/
Imt imt() {
return imt;
}
/**
* Returns the Gmm associated with the hazard curve.
*/
Gmm gmm() {
return gmm;
}
/**
* Returns the curve for a specific Imt and Gmm.
*/
XySequence curve() {
return curve;
}
}
/** /**
* Wrapper class for Lambda input. * Wrapper class for Lambda input.
*/ */
...@@ -213,4 +175,42 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler { ...@@ -213,4 +175,42 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler {
} }
} }
} }
/**
* Single hazard curve returned from the Lambda function.
*
* @see GroundMotionToCurveLambda#groundMotionsToCurvesHandler
*/
static class HazardCurve {
private final Imt imt;
private final Gmm gmm;
private final XySequence curve;
private HazardCurve(Imt imt, Gmm gmm, XySequence curve) {
this.imt = imt;
this.gmm = gmm;
this.curve = curve;
}
/**
* Returns the Imt associated with the hazard curve.
*/
Imt imt() {
return imt;
}
/**
* Returns the Gmm associated with the hazard curve.
*/
Gmm gmm() {
return gmm;
}
/**
* Returns the curve for a specific Imt and Gmm.
*/
XySequence curve() {
return curve;
}
}
} }
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