|
|
|
@ -3,6 +3,7 @@ package com.xydl.cac.iec;
|
|
|
|
|
import com.beanit.iec61850bean.*;
|
|
|
|
|
import com.xydl.cac.entity.IcdIed;
|
|
|
|
|
import com.xydl.cac.entity.constants.Constants;
|
|
|
|
|
import com.xydl.cac.exception.BusinessException;
|
|
|
|
|
import com.xydl.cac.model.StaticVariable;
|
|
|
|
|
import com.xydl.cac.socket.WebSocketServer;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -95,6 +96,9 @@ public class IecClient implements ClientEventListener {
|
|
|
|
|
|
|
|
|
|
public String getValue(String paramindex, String fc) throws Exception {
|
|
|
|
|
FcModelNode node = (FcModelNode) serverModel.findModelNode(paramindex, Fc.valueOf(fc));
|
|
|
|
|
if (node == null) {
|
|
|
|
|
throw new BusinessException("icd文件里未找到该节点, " + fc + " " + paramindex);
|
|
|
|
|
}
|
|
|
|
|
clientAssociation.getDataValues(node);
|
|
|
|
|
if (node instanceof BasicDataAttribute) {
|
|
|
|
|
String value = ((BasicDataAttribute) node).getValueString();
|
|
|
|
|