[New] Added StrolchTimedState.getValueType()
This commit is contained in:
parent
015557d3e6
commit
d63cddf0b4
|
@ -43,6 +43,11 @@ public class BooleanTimedState extends AbstractStrolchTimedState<BooleanValue> {
|
|||
return StrolchValueType.BOOLEAN.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.BOOLEAN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitBooleanState(this);
|
||||
|
|
|
@ -43,6 +43,11 @@ public class FloatListTimedState extends AbstractStrolchTimedState<FloatListValu
|
|||
return StrolchValueType.FLOAT_LIST.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.FLOAT_LIST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitFloatListState(this);
|
||||
|
|
|
@ -43,6 +43,11 @@ public class FloatTimedState extends AbstractStrolchTimedState<FloatValue> {
|
|||
return StrolchValueType.FLOAT.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.FLOAT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitFloatState(this);
|
||||
|
|
|
@ -43,6 +43,11 @@ public class IntegerTimedState extends AbstractStrolchTimedState<IntegerValue> {
|
|||
return StrolchValueType.INTEGER.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.INTEGER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitIntegerState(this);
|
||||
|
|
|
@ -43,6 +43,11 @@ public class LongTimedState extends AbstractStrolchTimedState<LongValue> {
|
|||
return StrolchValueType.LONG.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.LONG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitLongState(this);
|
||||
|
|
|
@ -43,6 +43,11 @@ public class StringSetTimedState extends AbstractStrolchTimedState<StringSetValu
|
|||
return StrolchValueType.STRING_SET.getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public StrolchValueType getValueType() {
|
||||
return StrolchValueType.STRING_SET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <U> U accept(StrolchElementVisitor<U> visitor) {
|
||||
return visitor.visitStringState(this);
|
||||
|
|
|
@ -18,6 +18,7 @@ package li.strolch.model.timedstate;
|
|||
import li.strolch.model.Resource;
|
||||
import li.strolch.model.StrolchElement;
|
||||
import li.strolch.model.StrolchModelConstants;
|
||||
import li.strolch.model.StrolchValueType;
|
||||
import li.strolch.model.parameter.Parameter;
|
||||
import li.strolch.model.timevalue.ITimeValue;
|
||||
import li.strolch.model.timevalue.ITimeVariable;
|
||||
|
@ -30,6 +31,11 @@ import li.strolch.model.timevalue.IValueChange;
|
|||
@SuppressWarnings("rawtypes")
|
||||
public interface StrolchTimedState<T extends IValue> extends StrolchElement {
|
||||
|
||||
/**
|
||||
* @return the {@link StrolchValueType}
|
||||
*/
|
||||
StrolchValueType getValueType();
|
||||
|
||||
/**
|
||||
* get the hidden attribute
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue