
step.artefacts.While Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (C) 2020, exense GmbH
*
* This file is part of STEP
*
* STEP is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* STEP is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with STEP. If not, see .
******************************************************************************/
package step.artefacts;
import step.core.artefacts.AbstractArtefact;
import step.core.artefacts.Artefact;
import step.core.dynamicbeans.DynamicValue;
import step.core.yaml.YamlModel;
@YamlModel(name = "while")
@Artefact(name = "While")
public class While extends AbstractArtefact {
private DynamicValue condition = new DynamicValue<>("", "");
private DynamicValue postCondition = new DynamicValue<>("", "");
DynamicValue pacing = new DynamicValue();
DynamicValue timeout = new DynamicValue();
DynamicValue maxIterations = new DynamicValue();
public While() {
super();
}
public While(String conditionExpr) {
super();
condition = new DynamicValue<>(conditionExpr, "");
setPacing(new DynamicValue<>(0L));
setTimeout(new DynamicValue<>(0L));
setMaxIterations(new DynamicValue<>(0));
}
public DynamicValue getCondition() {
return condition;
}
public void setCondition(DynamicValue condition) {
this.condition = condition;
}
public DynamicValue getPostCondition() {
return postCondition;
}
public void setPostCondition(DynamicValue postCondition) {
this.postCondition = postCondition;
}
public DynamicValue getPacing() {
return pacing;
}
public void setPacing(DynamicValue pacing) {
this.pacing = pacing;
}
public DynamicValue getTimeout() {
return timeout;
}
public void setTimeout(DynamicValue timeout) {
this.timeout = timeout;
}
public DynamicValue getMaxIterations() {
return this.maxIterations;
}
public void setMaxIterations(DynamicValue maxIterations) {
this.maxIterations = maxIterations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy