Record Class FireEscapeAnalyzer.EvacuationResult
java.lang.Object
java.lang.Record
org.episteme.social.architecture.FireEscapeAnalyzer.EvacuationResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
FireEscapeAnalyzer
public static record FireEscapeAnalyzer.EvacuationResult(double totalEvacuationTime, Map<String,Double> exitTimes, Map<String,Integer> exitLoads, List<String> bottlenecks, boolean meetsCode)
extends Record
implements Serializable
Complete simulation result for a specific building configuration.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottlenecksrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexitLoadsrecord component.Returns the value of theexitTimesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themeetsCoderecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetotalEvacuationTimerecord component.
-
Constructor Details
-
EvacuationResult
public EvacuationResult(double totalEvacuationTime, Map<String, Double> exitTimes, Map<String, Integer> exitLoads, List<String> bottlenecks, boolean meetsCode) Creates an instance of aEvacuationResultrecord class.- Parameters:
totalEvacuationTime- the value for thetotalEvacuationTimerecord componentexitTimes- the value for theexitTimesrecord componentexitLoads- the value for theexitLoadsrecord componentbottlenecks- the value for thebottlenecksrecord componentmeetsCode- the value for themeetsCoderecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
totalEvacuationTime
public double totalEvacuationTime()Returns the value of thetotalEvacuationTimerecord component.- Returns:
- the value of the
totalEvacuationTimerecord component
-
exitTimes
-
exitLoads
-
bottlenecks
-
meetsCode
public boolean meetsCode()Returns the value of themeetsCoderecord component.- Returns:
- the value of the
meetsCoderecord component
-