Package hec.data.fragilitycurve
Class FragilityCurvePairedDataContainer
java.lang.Object
hec.data.fragilitycurve.FragilityCurvePairedDataContainer
-
Constructor Summary
ConstructorsConstructorDescriptionFragilityCurvePairedDataContainer
(FragilityCurvePairedDataContainer fragilityCurveOutputLocation) -
Method Summary
Modifier and TypeMethodDescriptiondouble
returns the breach elevation for the given structurereturns the breach method for this structuredouble
sets the breach elevation for the given structurereturns the duration that the breach elevation needs to be exceeded to trigger failurereturns the name of the Failure Modeget the FragilityCurvePairedDataContainer from the location specified by the DSSIdentifierget the FragilityCurvePairedDataContainer from the DSS PairedDataContainergetFragilityCurvePairedDataContainer
(String dssFile, String dssPath) get the FragilityCurvePairedDataContainer from the location specified by the DSS File and DSS pathreturns the pathname of the backing Paired Data Containervoid
initialize
(String locName, DSSIdentifier dssId, DSSPathname pathname, int unitSystem) void
setBreachMethod
(StructureBreachMethods breachMethod) sets the breach method for this structurevoid
setFailureModeName
(String failureModeName) sets the name of the failure modevoid
setFilename
(String dssFilename) set the dss filename for saving datavoid
setFullname
(String pathname) void
void
setSampledDuration
(Double durationInHours) sets the duration above which the breach elevation needs to be exceeded to trigger a failurevoid
setSampledProbabilityAndElevation
(double prob, double elevation) set the breach elevation and the associated probabilityvoid
setVersion
(String fPart) boolean
This signifies if the PDC was correctly parsed when attempting to read the output paired data containervoid
updatePDCFields
(String filename)
-
Constructor Details
-
FragilityCurvePairedDataContainer
public FragilityCurvePairedDataContainer() -
FragilityCurvePairedDataContainer
public FragilityCurvePairedDataContainer(FragilityCurvePairedDataContainer fragilityCurveOutputLocation) - Parameters:
fragilityCurveOutputLocation
-
-
-
Method Details
-
getFragilityCurvePairedDataContainer
public static FragilityCurvePairedDataContainer getFragilityCurvePairedDataContainer(DSSIdentifier dssId) get the FragilityCurvePairedDataContainer from the location specified by the DSSIdentifier- Parameters:
dssId
- the DSSIdentifier for a PDC that holds the FragilityCurvePairedDataContainer's information- Returns:
- the FragilityCurvePairedDataContainer or null if there's an error
-
getFragilityCurvePairedDataContainer
public static FragilityCurvePairedDataContainer getFragilityCurvePairedDataContainer(String dssFile, String dssPath) get the FragilityCurvePairedDataContainer from the location specified by the DSS File and DSS path- Parameters:
dssFile
- the DSS file that holds the PairedDataContainer that holds the FragilityCurvePairedDataContainer informationdssPath
- the DSS path that holds the PairedDataContainer that holds the FragilityCurvePairedDataContainer information- Returns:
- the FragilityCurvePairedDataContainer or null if there's an error
-
getFragilityCurvePairedDataContainer
public static FragilityCurvePairedDataContainer getFragilityCurvePairedDataContainer(PairedDataContainer pdc) get the FragilityCurvePairedDataContainer from the DSS PairedDataContainer- Parameters:
pdc
- the PairedDataContainer that holds the FragilityCurvePairedDataContainer's information- Returns:
- the FragilityCurvePairedDataContainer or null if there's an error loading the data.
-
setPairedDataContainer
-
initialize
- Parameters:
pathname
-dssId
-locName
-
-
getPairedDataContainer
- Returns:
-
setFilename
set the dss filename for saving data- Parameters:
dssFilename
-
-
setSampledProbabilityAndElevation
public void setSampledProbabilityAndElevation(double prob, double elevation) set the breach elevation and the associated probability- Parameters:
prob
-elevation
-
-
setSampledDuration
sets the duration above which the breach elevation needs to be exceeded to trigger a failure- Parameters:
durationInHours
-
-
getDurationInHours
returns the duration that the breach elevation needs to be exceeded to trigger failure- Returns:
- the duration in hours, or null if duration wasn't used or the FragliityCurvePariedDataContainer was successfully read
-
setBreachMethod
sets the breach method for this structure- Parameters:
breachMethod
-
-
getBreachMethod
returns the breach method for this structure- Returns:
- the breach method or null if the FragilityCurvePaire
-
getFailureModeName
returns the name of the Failure Mode- Returns:
- the Failure Mode or null if the FragilityCurvePairedDataContainer
-
setFailureModeName
sets the name of the failure mode- Parameters:
failureModeName
-
-
getPathname
returns the pathname of the backing Paired Data Container- Returns:
-
updatePDCFields
-
getFilename
- Returns:
-
getFullname
- Returns:
-
getBreachProbability
public double getBreachProbability()sets the breach elevation for the given structure- Returns:
- the breach probability or undefined double if the FragilityCurvePairedDataContainer was successfully parsed
-
getBreachElevation
public double getBreachElevation()returns the breach elevation for the given structure- Returns:
- the breech elevation or undefined double if the FragilityCurvePairedDataContainer was successfully parsed
-
successfullyReadPDC
public boolean successfullyReadPDC()This signifies if the PDC was correctly parsed when attempting to read the output paired data container- Returns:
- true if the backing PairedDataContainer was successfully parsed.
-
setFullname
- Parameters:
pathname
-
-
setVersion
- Parameters:
fPart
-
-