/** * Adds a node to the NodeInfoList with given description, creationInfo, and neededNodes * * @param description Description of the node added to the list * @param creationInfo Creation info string for the node added to the list * @param neededNodes Nodes needed by the node added to the list * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void add( ProductionNodeDescription description, String creationInfo, NodeInfoList neededNodes) throws StatusException { long pNativeDesc = description.createNative(); int status = NativeMethods.xnNodeInfoListAdd( toNative(), pNativeDesc, creationInfo, neededNodes == null ? 0 : neededNodes.toNative()); ProductionNodeDescription.freeNative(pNativeDesc); WrapperUtils.throwOnError(status); }
/** * Appends another NodeInfoList to this one * * @param other NodeInfoList to be appended * @throws StatusException If underlying native code returns errors, a Status Exception will be * generated */ public void append(NodeInfoList other) throws StatusException { int status = NativeMethods.xnNodeInfoListAppend(toNative(), other.toNative()); WrapperUtils.throwOnError(status); }