-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from FIUS/feature/program-runner-refactor
Refactor program runner to use CompletableFuture
- Loading branch information
Showing
7 changed files
with
175 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...va/de/unistuttgart/informatik/fius/icge/simulation/entity/program/RunningProgramInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* This source file is part of the FIUS ICGE project. | ||
* For more information see github.com/FIUS/ICGE2 | ||
* | ||
* Copyright (c) 2019 the ICGE project authors. | ||
* | ||
* This software is available under the MIT license. | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
package de.unistuttgart.informatik.fius.icge.simulation.entity.program; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
|
||
/** | ||
* Info object holding a running program. | ||
* | ||
* @author Fabian Bühler | ||
*/ | ||
public interface RunningProgramInfo { | ||
|
||
/** | ||
* @return the state of this object; cannot be null | ||
*/ | ||
public EntityProgramState getState(); | ||
|
||
/** | ||
* @return the future running the program | ||
*/ | ||
public CompletableFuture<Void> getFuture(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.