Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
6ad9775d
Commit
6ad9775d
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
Format
parent
14c2b497
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!275
Resolves: Lambda Parallelization - Lambda Function for GroundMotionsToCurves
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
+38
-38
38 additions, 38 deletions
...usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
with
38 additions
and
38 deletions
src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
+
38
−
38
View file @
6ad9775d
...
@@ -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
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment