master
Qin Dong Ming 2024-09-10 10:24:28 +08:00
parent 8189b22dc1
commit 56aa6fcf57
5 changed files with 27 additions and 26 deletions

View File

@ -20,6 +20,6 @@ public abstract class DataEngineValueActuator implements BasicEngine<DataValue>
this.remove();
}
public abstract void run();
public abstract DataValue run();
}

View File

@ -1,22 +1,20 @@
//package com.muyu.abstracts;
//import com.muyu.abstracts.DataEngineValueActuator;
//import com.muyu.abstracts.DataValue;
//
///**
// * @Author: qdm
// * @date: 2024/09/10 09:40:42
// * @Description:
// * @Version: 1.0
// */
//public class PwoerEngine extends DataEngineValueActuator{
// @Override
// public DataValue run () {
// DataValue dataValue = get();
// if(dataValue.getValue()==null || dataValue.getValue().equals("")){
// System.out.println("数据为空,需要丢弃");
// }else{
// System.out.println("数据非空:"+dataValue.getValue());
// }
// return dataValue;
// }
//}
package com.muyu.abstracts;
/**
* @Author: qdm
* @date: 2024/09/10 09:40:42
* @Description:
* @Version: 1.0
*/
public class PwoerEngine extends DataEngineValueActuator{
@Override
public DataValue run () {
DataValue dataValue = get();
if(dataValue.getValue()==null || dataValue.getValue().equals("")){
System.out.println("数据为空,需要丢弃");
}else{
System.out.println("数据非空:"+dataValue.getValue());
}
return dataValue;
}
}

View File

@ -3,8 +3,9 @@ package com.muyu.abstracts;
public class generate extends DataEngineValueActuator {
@Override
public void run() {
public DataValue run() {
return null;
}
}

View File

@ -5,11 +5,12 @@ import com.muyu.abstracts.DataValue;
public class ENGINE_VALUE_VFD1000_V1 extends DataEngineValueActuator {
@Override
public void run() {
public DataValue run() {
DataValue dataValue = get();
if (dataValue.getValue() == null) {
System.out.println("数据为空");
}
return dataValue;
}
}

View File

@ -5,10 +5,11 @@ import com.muyu.abstracts.DataValue;
public class ENGINE_phone_zzzzz_V9 extends DataEngineValueActuator {
@Override
public void run() {
public DataValue run() {
DataValue dataValue = get();
if (dataValue.getValue() == null) {
System.out.println("数据为空");
}
return dataValue;
}
}