Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ public Builder setExperimentParameterData(ExperimentParameterData experimentPara
* Set the simulation state. Defaults to the current date and a start time of
* zero.
*
* @throws ContractException {@link NucleusError#NULL_SIMULATION_TIME} if the
* simulation time is null
* @throws ContractException {@link NucleusError#NULL_SIMULATION_STATE} if the
* simulation state is null
*/
public Builder setSimulationState(SimulationState simulationState) {
ensureDataMutability();
if (simulationState == null) {
throw new ContractException(NucleusError.NULL_SIMULATION_TIME);
throw new ContractException(NucleusError.NULL_SIMULATION_STATE);
}
data.simulationState = simulationState;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public enum NucleusError implements ContractError {
NULL_SCENARIO_ID("Null scenario id"),//
NULL_SCENARIO_PROGRESS_FILE("Null scenario progress file"),//
NULL_SIMULATION_CONTEXT("Null simulation context"),//
NULL_SIMULATION_TIME("Null simulation time"),//
NULL_SIMULATION_STATE("Null simulation state data"),//
OBSERVATION_EVENT_IMPROPER_RELEASE("An observation event is being released during a mutation by a data manager without the use of a corresponding mutation event"),//
PAST_PLANNING_TIME("Plan execution time is in the past"),//
PLANNING_QUEUE_ACTIVE("The planning queue is still active and plans cannot be retrieved"),//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public Builder setSimulationHaltTime(Double simulationHaltTime) {
* Set the simulation state. Defaults to the current date and a start time of
* zero.
*
* @throws ContractException {@link NucleusError#NULL_SIMULATION_TIME} if the
* simulation time is null
* @throws ContractException {@link NucleusError#NULL_SIMULATION_STATE} if the
* simulation state is null
*/
public Builder setSimulationState(SimulationState simulationState) {
if (simulationState == null) {
throw new ContractException(NucleusError.NULL_SIMULATION_TIME);
throw new ContractException(NucleusError.NULL_SIMULATION_STATE);
}
ensureDataMutability();
data.simulationState = simulationState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ public Builder setSimulationHaltTime(double simulationHaltTime) {
* Set the simulation time. Defaults to the current date and a start time of
* zero.
*
* @throws ContractException {@link NucleusError#NULL_SIMULATION_TIME} if the
* simulation time is null
* @throws ContractException {@link NucleusError#NULL_SIMULATION_STATE} if the
* simulation state is null
*/
public Builder setSimulationState(SimulationState simulationState) {
ensureDataMutability();
if (simulationState == null) {
throw new ContractException(NucleusError.NULL_SIMULATION_TIME);
throw new ContractException(NucleusError.NULL_SIMULATION_STATE);
}
data.simulationState = simulationState;
return this;
Expand Down