本文整理汇总了Java中org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger类的典型用法代码示例。如果您正苦于以下问题:Java UInteger类的具体用法?Java UInteger怎么用?Java UInteger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UInteger类属于org.eclipse.milo.opcua.stack.core.types.builtin.unsigned包,在下文中一共展示了UInteger类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createCallMeNode
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static UaMethodNode createCallMeNode(final UShort index, final ServerNodeMap nodeMap) {
final UaMethodNode method = new UaMethodNode(
nodeMap,
new NodeId(index, "call-me-al"),
new QualifiedName(index, "Al"),
LocalizedText.english("Al"),
LocalizedText.english("Call me Al"),
UInteger.MIN, UInteger.MIN, true, true);
try {
final AnnotationBasedInvocationHandler handler = AnnotationBasedInvocationHandler
.fromAnnotatedObject(nodeMap, new CallMe());
method.setInputArguments(handler.getInputArguments());
method.setOutputArguments(handler.getOutputArguments());
method.setInvocationHandler(handler);
} catch (final Exception e) {
e.printStackTrace();
}
return method;
}
开发者ID:ctron,项目名称:milo-ece2017,代码行数:21,代码来源:CallMe.java
示例2: ReferenceTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public ReferenceTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract,
boolean symmetric,
LocalizedText inverseName) {
super(nodeId, NodeClass.ReferenceType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
this.symmetric = symmetric;
this.inverseName = inverseName;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:18,代码来源:ReferenceTypeNodeAttributes.java
示例3: NodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public NodeAttributes(NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask) {
this.nodeId = nodeId;
this.nodeClass = nodeClass;
this.browseName = browseName;
this.displayName = displayName;
this.description = description;
this.writeMask = writeMask;
this.userWriteMask = userWriteMask;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:17,代码来源:NodeAttributes.java
示例4: VariableTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public VariableTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
DataValue value,
NodeId dataType,
int valueRank,
UInteger[] arrayDimensions,
boolean isAbstract) {
super(nodeId, NodeClass.VariableType, browseName, displayName, description, writeMask, userWriteMask);
this.value = value;
this.dataType = dataType;
this.valueRank = valueRank;
this.arrayDimensions = arrayDimensions;
this.isAbstract = isAbstract;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:22,代码来源:VariableTypeNodeAttributes.java
示例5: getTimeoutHint
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
private UInteger getTimeoutHint() {
double minKeepAlive = subscriptions.values().stream()
.map(s -> s.getRevisedPublishingInterval() * s.getRevisedMaxKeepAliveCount().doubleValue())
.min(Comparator.naturalOrder())
.orElse(client.getConfig().getRequestTimeout().doubleValue());
long maxPendingPublishes = getMaxPendingPublishes();
double timeoutHint = maxPendingPublishes * minKeepAlive * 1.25;
if (Double.isInfinite(timeoutHint)) {
timeoutHint = UInteger.MAX_VALUE;
} else if (timeoutHint > UInteger.MAX_VALUE) {
timeoutHint = UInteger.MAX_VALUE;
}
logger.debug(
"getTimeoutHint() minKeepAlive={} maxPendingPublishes={} timeoutHint={}",
minKeepAlive, maxPendingPublishes, timeoutHint);
return uint((long) timeoutHint);
}
开发者ID:eclipse,项目名称:milo,代码行数:23,代码来源:OpcUaSubscriptionManager.java
示例6: decode
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
@Override
public ServerDiagnosticsSummaryDataType decode(UaDecoder decoder) throws UaSerializationException {
UInteger serverViewCount = decoder.readUInt32("ServerViewCount");
UInteger currentSessionCount = decoder.readUInt32("CurrentSessionCount");
UInteger cumulatedSessionCount = decoder.readUInt32("CumulatedSessionCount");
UInteger securityRejectedSessionCount = decoder.readUInt32("SecurityRejectedSessionCount");
UInteger rejectedSessionCount = decoder.readUInt32("RejectedSessionCount");
UInteger sessionTimeoutCount = decoder.readUInt32("SessionTimeoutCount");
UInteger sessionAbortCount = decoder.readUInt32("SessionAbortCount");
UInteger currentSubscriptionCount = decoder.readUInt32("CurrentSubscriptionCount");
UInteger cumulatedSubscriptionCount = decoder.readUInt32("CumulatedSubscriptionCount");
UInteger publishingIntervalCount = decoder.readUInt32("PublishingIntervalCount");
UInteger securityRejectedRequestsCount = decoder.readUInt32("SecurityRejectedRequestsCount");
UInteger rejectedRequestsCount = decoder.readUInt32("RejectedRequestsCount");
return new ServerDiagnosticsSummaryDataType(serverViewCount, currentSessionCount, cumulatedSessionCount, securityRejectedSessionCount, rejectedSessionCount, sessionTimeoutCount, sessionAbortCount, currentSubscriptionCount, cumulatedSubscriptionCount, publishingIntervalCount, securityRejectedRequestsCount, rejectedRequestsCount);
}
开发者ID:eclipse,项目名称:milo,代码行数:18,代码来源:ServerDiagnosticsSummaryDataType.java
示例7: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static ReferenceTypeNodeAttributes fromGenerated(GeneratedUAReferenceType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
boolean symmetric = gNode.isSymmetric();
LocalizedText inverseName = gNode.getInverseName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
return new ReferenceTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract,
symmetric,
inverseName
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:38,代码来源:ReferenceTypeNodeAttributes.java
示例8: VariableNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public VariableNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
DataValue value,
NodeId dataType,
int valueRank,
UInteger[] arrayDimensions,
UByte accessLevel,
UByte userAccessLevel,
Double minimumSamplingInterval,
boolean historizing) {
super(nodeId, NodeClass.Variable, browseName, displayName, description, writeMask, userWriteMask);
this.value = value;
this.dataType = dataType;
this.valueRank = valueRank;
this.arrayDimensions = arrayDimensions;
this.accessLevel = accessLevel;
this.userAccessLevel = userAccessLevel;
this.minimumSamplingInterval = minimumSamplingInterval;
this.historizing = historizing;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:28,代码来源:VariableNodeAttributes.java
示例9: MethodNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public MethodNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean executable,
boolean userExecutable) {
super(nodeId, NodeClass.Method, browseName, displayName, description, writeMask, userWriteMask);
this.executable = executable;
this.userExecutable = userExecutable;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:16,代码来源:MethodNodeAttributes.java
示例10: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static MethodNodeAttributes fromGenerated(GeneratedUAMethod gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean executable = gNode.isExecutable();
boolean userExecutable = gNode.isUserExecutable();
return new MethodNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
executable,
userExecutable
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:32,代码来源:MethodNodeAttributes.java
示例11: DataTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public DataTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract) {
super(nodeId, NodeClass.DataType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:14,代码来源:DataTypeNodeAttributes.java
示例12: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static DataTypeNodeAttributes fromGenerated(GeneratedUADataType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
return new DataTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:30,代码来源:DataTypeNodeAttributes.java
示例13: ObjectTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public ObjectTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract) {
super(nodeId, NodeClass.ObjectType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:14,代码来源:ObjectTypeNodeAttributes.java
示例14: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static ObjectTypeNodeAttributes fromGenerated(GeneratedUAObjectType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
return new ObjectTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:30,代码来源:ObjectTypeNodeAttributes.java
示例15: ObjectNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public ObjectNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
UByte eventNotifier) {
super(nodeId, NodeClass.Object, browseName, displayName, description, writeMask, userWriteMask);
this.eventNotifier = eventNotifier;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:14,代码来源:ObjectNodeAttributes.java
示例16: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static ObjectNodeAttributes fromGenerated(GeneratedUAObject gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
UByte eventNotifier = ubyte(gNode.getEventNotifier());
return new ObjectNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
eventNotifier
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:30,代码来源:ObjectNodeAttributes.java
示例17: ViewNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public ViewNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean containsNoLoops,
UByte eventNotifier) {
super(nodeId, NodeClass.View, browseName, displayName, description, writeMask, userWriteMask);
this.containsNoLoops = containsNoLoops;
this.eventNotifier = eventNotifier;
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:16,代码来源:ViewNodeAttributes.java
示例18: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static ViewNodeAttributes fromGenerated(GeneratedUAView gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean containsNoLoops = gNode.isContainsNoLoops();
UByte eventNotifier = ubyte(gNode.getEventNotifier());
return new ViewNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
containsNoLoops,
eventNotifier
);
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:32,代码来源:ViewNodeAttributes.java
示例19: parseArrayDimensions
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
public static UInteger[] parseArrayDimensions(List<String> list) {
if (list.isEmpty()) {
return new UInteger[0];
} else {
String[] ss = list.get(0).split(",");
UInteger[] dimensions = new UInteger[ss.length];
for (int i = 0; i < ss.length; i++) {
dimensions[i] = uint(Integer.parseInt(ss[i]));
}
return dimensions;
}
}
开发者ID:digitalpetri,项目名称:uanodeset-parser,代码行数:15,代码来源:AttributeUtil.java
示例20: buildNode93
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; //导入依赖的package包/类
private void buildNode93() {
UaObjectNode node = new DataTypeEncodingNode(this.nodeMap, NodeId.parse("ns=0;i=854"), new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), UByte.valueOf(0));
node.addReference(new Reference(NodeId.parse("ns=0;i=854"), NodeId.parse("ns=0;i=38"), ExpandedNodeId.parse("svr=0;i=853"), NodeClass.DataType, false));
node.addReference(new Reference(NodeId.parse("ns=0;i=854"), NodeId.parse("ns=0;i=39"), ExpandedNodeId.parse("svr=0;i=8843"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=854"), NodeId.parse("ns=0;i=40"), ExpandedNodeId.parse("svr=0;i=76"), NodeClass.ObjectType, true));
this.nodeMap.addNode(node);
}
开发者ID:eclipse,项目名称:milo,代码行数:8,代码来源:UaObjectLoader.java
注:本文中的org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论