[Major] Removed obsolete IActivityElement.inExecutionWarningPhase()

This commit is contained in:
Robert von Burg 2022-01-26 12:53:25 +01:00
parent b94c43581d
commit 82d67c3ef2
2 changed files with 1 additions and 19 deletions

View File

@ -65,7 +65,7 @@ public enum State {
}
/**
* @return true if the state is one of {@link #EXECUTABLE} {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING},
* @return true if the state is one of {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING},
* {@link #ERROR} or {@link #EXECUTED}
*/
public boolean inExecutionPhase() {
@ -86,13 +86,6 @@ public enum State {
return this == ERROR || this == STOPPED;
}
/**
* @return true if the state is one of {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING} or {@link #ERROR}
*/
public boolean inExecutionWarningPhase() {
return this == EXECUTION || this == STOPPED || this == WARNING || this == ERROR;
}
/**
* @return true if the state is {@link #EXECUTED} or {@link #CLOSED}
*/
@ -184,13 +177,6 @@ public enum State {
return this == CREATED || this == PLANNING || this == PLANNED;
}
/**
* @return true if {@link #PLANNED} or {@link #EXECUTABLE} or {@link #STOPPED}
*/
public boolean canSetToExecutable() {
return this == PLANNED || this == EXECUTABLE || this == State.STOPPED;
}
/**
* @return true if state >= {@link #EXECUTED}
*/

View File

@ -198,10 +198,6 @@ public interface IActivityElement extends StrolchElement {
return getState().inErrorPhase();
}
default boolean inExecutionWarningPhase() {
return getState().inExecutionWarningPhase();
}
default boolean inClosedPhase() {
return getState().inClosedPhase();
}