Create a Get data frame.

@param nodeId the target node ID
@param s the scale (null for version 1)

@return a DataFrame instance
347511
public DataFrame createGet(byte nodeId, Scale s) {
        switch (getVersion()) {
            case 1:
                return createSendDataFrame("METER_GET", nodeId, new byte[]{MeterCommandClass.ID, METER_GET}, true);
            default: {
                byte scale = scaleToByte(s);
                byte b = (byte) ((scale << 3) & 0x18);
                return createSendDataFrame("METER_GET", nodeId, new byte[]{MeterCommandClass.ID, METER_GET, b}, true);
            }

        }
    }
314234
private Node<K, V> getNodeFromStore(final int nodeid) {
		final int index = nodeid < 0 ? -nodeid : nodeid;
		final ByteBuffer buf = storage.get(index);
		final Node<K, V> node = Node.deserialize(buf, this);
		if (rootIdx == node.id) {
			log.warn(this.getClass().getName() + "::getNodeFromStore(" + nodeid + ") WARN LOADED ROOT NODE");
		}
		storage.release(buf);
		if (enableIOStats) {
			getIOStat(nodeid).incPhysRead();
		}
		return node;
	}
114669
public static int getNode(Network bn, String nodeName)
            throws ShanksException {
        int node = bn.getNode(nodeName);
        return node;
    }
317305
protected Object createNode(Object name, Map attributes) {
        return createNode(name, attributes, null);
    }
263011
@Override
    public WSStatistic getStatistic(int dataId) {
        ArrayList members = copyStatistics();
        if (members == null || members.size() <= 0)
            return null;

        int sz = members.size();
        for (int i = 0; i < sz; i++) {
            StatisticImpl data = (StatisticImpl) members.get(i);
            if (data != null && data.getId() == dataId) {
                return data;
            }
        }
        return null;
    }
749095
function getUnit() {
  const type = NodeType.IdentType;
  const token = tokens[pos];
  const line = token.ln;
  const column = token.col;
  const content = token.value;

  pos++;

  return newNode(type, content, line, column);
}
507848
public List<Node> getNodes(Collection<Long> nodeIds)
	{
		if(nodeIds.isEmpty()) return Collections.emptyList();
		return getSomeElements(NODE + "s?" + NODE + "s=" + toCommaList(nodeIds), Node.class);
	}
64976
public Map<String,Object> save(PersistenceContext ctx, byte nodeId) {
        Map<String,Object> map = ctx.getCommandClassMap(nodeId, getId());
        map.put("version", getVersion());
        return map;
    }
573589
private Node createNode(final DatabaseService graphDb, final Principal user, final String type, final Set<String> labels, final Map<String, Object> properties) throws FrameworkException {

		final Map<String, Object> ownsProperties     = new HashMap<>();
		final Map<String, Object> securityProperties = new HashMap<>();
		final String newUuid                         = (String)properties.get("id");

		if (user != null && user.shouldSkipSecurityRelationships() == false) {

			final String userId = user.getUuid();

			// configure OWNS relationship creation statement for maximum performance
			ownsProperties.put(GraphObject.id.dbName(),                          getNextUuid());
			ownsProperties.put(GraphObject.type.dbName(),                        PrincipalOwnsNode.class.getSimpleName());
			ownsProperties.put(GraphObject.visibleToPublicUsers.dbName(),        false);
			ownsProperties.put(GraphObject.visibleToAuthenticatedUsers.dbName(), false);
			ownsProperties.put(AbstractRelationship.relType.dbName(),            "OWNS");
			ownsProperties.put(AbstractRelationship.sourceId.dbName(),           userId);
			ownsProperties.put(AbstractRelationship.targetId.dbName(),           newUuid);
			ownsProperties.put(AbstractRelationship.internalTimestamp.dbName(),  graphDb.getInternalTimestamp());

			// configure SECURITY relationship creation statement for maximum performance
			securityProperties.put(GraphObject.id.dbName(),                          getNextUuid());
			securityProperties.put(GraphObject.type.dbName(),                        Security.class.getSimpleName());
			securityProperties.put(GraphObject.visibleToPublicUsers.dbName(),        false);
			securityProperties.put(GraphObject.visibleToAuthenticatedUsers.dbName(), false);
			securityProperties.put(AbstractRelationship.relType.dbName(),            "SECURITY");
			securityProperties.put(AbstractRelationship.sourceId.dbName(),           userId);
			securityProperties.put(AbstractRelationship.targetId.dbName(),           newUuid);
			securityProperties.put(AbstractRelationship.internalTimestamp.dbName(),  graphDb.getInternalTimestamp());
			securityProperties.put(Security.allowed.dbName(),                        new String[] { Permission.read.name(), Permission.write.name(), Permission.delete.name(), Permission.accessControl.name() } );
			securityProperties.put(Security.principalId.dbName(),                    userId);
			securityProperties.put(Security.accessControllableId.dbName(),           newUuid);

			try {

				final NodeWithOwnerResult result = graphDb.createNodeWithOwner(user.getNode().getId(), type, labels, properties, ownsProperties, securityProperties);
				final Relationship securityRel   = result.getSecurityRelationship();
				final Relationship ownsRel       = result.getOwnsRelationship();
				final Node newNode               = result.getNewNode();

				notifySecurityRelCreation(user, securityRel);
				notifyOwnsRelCreation(user, ownsRel);

				return newNode;

			} catch (DataFormatException dex) {
				throw new FrameworkException(422, dex.getMessage());
			} catch (ConstraintViolationException qex) {
				throw new FrameworkException(422, qex.getMessage());
			}


		} else {

			try {

				return graphDb.createNode(type, labels, properties);

			} catch (DataFormatException dex) {
				throw new FrameworkException(422, dex.getMessage());
			} catch (ConstraintViolationException qex) {
				throw new FrameworkException(422, qex.getMessage());
			}
		}
	}
868481
function getNodeFromId(nodeId){
    var res = $.grep(gAllNodes, function(e) {
        return e._id === nodeId;
    });
    return res[0];
}
403644
public Object getProperty( Property propertyId ) {
        return nodeProperties != null ? nodeProperties.get(propertyId) : null;
    }
28340
function(s) {
				var e = document.createElement("div");
				e.innerHTML = s;
				return e.childNodes.length === 0
					? ""
					: e.childNodes[0].nodeValue;
			}
516749
public Tree getDescriptor(String nodeID) {
		if (this.nodeID.equals(nodeID)) {
			return registry.getDescriptor();
		}
		NodeDescriptor node = nodes.get(nodeID);
		if (node == null) {
			return null;
		}
		Tree info = null;
		node.readLock.lock();
		try {
			if (node.info != null) {
				info = node.info.clone();
			}
		} finally {
			node.readLock.unlock();
		}
		return info;
	}
246154
private static void nodesTable(Statement st,
                                   TableLocation nodesName,
                                   double tolerance, boolean isH2, int srid) throws SQLException {
        LOGGER.info("Creating the nodes table...");
        // Creating nodes table by removing copies from the pts table.
        if (tolerance > 0) {
            if(isH2){
            st.execute("CREATE TABLE " + nodesName + "(" +
                    "NODE_ID SERIAL PRIMARY KEY, " +
                    "THE_GEOM POINT, " +
                    "EXP POLYGON" +
                    ") AS " +
                    "SELECT NULL, A.THE_GEOM, A.AREA FROM "+ PTS_TABLE + " as A," + PTS_TABLE +" as B " +
                    "WHERE A.AREA && B.AREA " +
                    "GROUP BY A.ID " +
                    "HAVING A.ID=MIN(B.ID);");
            }
            else{
               st.execute("CREATE TABLE " + nodesName + "(" +
                    "NODE_ID SERIAL PRIMARY KEY, " +
                    "THE_GEOM GEOMETRY(POINT, " + srid+"), "+
                    "EXP GEOMETRY(POLYGON," +srid+")"+
                    ") " );
                st.execute( "INSERT INTO "+nodesName +" (SELECT (row_number() over())::int , c.the_geom, c.area FROM (SELECT  A.THE_GEOM, A.AREA FROM "+ PTS_TABLE +" as  A, "+ PTS_TABLE +" as B " +
                    "WHERE A.AREA && B.AREA " +
                    "GROUP BY A.ID " +
                    "HAVING A.ID=MIN(B.ID)) as c);"); 
            }
        } else {
            
            if(isH2){
               // If the tolerance is zero, we can create the NODES table
            // by using = rather than &&.
            st.execute("CREATE TABLE " + nodesName + "(" +
                    "NODE_ID SERIAL PRIMARY KEY, " +
                    "THE_GEOM POINT" +
                    ") AS " +
                    "SELECT NULL, A.THE_GEOM FROM "+ PTS_TABLE + " as A," + PTS_TABLE + " as B " +
                    "WHERE A.THE_GEOM && B.THE_GEOM AND A.THE_GEOM=B.THE_GEOM " +
                    "GROUP BY A.ID " +
                    "HAVING A.ID=MIN(B.ID);"); 
            }
            else{
            // If the tolerance is zero, we can create the NODES table
            // by using = rather than &&.
            st.execute("CREATE TABLE " + nodesName + "(" +
                    "NODE_ID SERIAL PRIMARY KEY, " +
                    "THE_GEOM GEOMETRY(POINT, "+srid+")" +
                    ") " );            
            st.execute("INSERT INTO "+nodesName +" (SELECT (row_number() over())::int , c.the_geom FROM (SELECT A.THE_GEOM FROM "+ PTS_TABLE + " as A," + PTS_TABLE + " as B " +
                    "WHERE A.THE_GEOM && B.THE_GEOM AND A.THE_GEOM=B.THE_GEOM " +
                    "GROUP BY A.ID " +
                    "HAVING A.ID=MIN(B.ID)) as c);");
            }
        }
    }
1040535
public DatanodeDescriptor getDatanode(DatanodeID nodeID) throws IOException {
    UnregisteredDatanodeException e = null;
    DatanodeDescriptor node = datanodeMap.get(nodeID.getStorageID());
    if (node == null) {
      return null;
    }
    if (!node.getName().equals(nodeID.getName())) {
      e = new UnregisteredDatanodeException(nodeID, node);
      NameNode.stateChangeLog.fatal("BLOCK* NameSystem.getDatanode: "
        + e.getLocalizedMessage());
      throw e;
    }
    return node;
  }
1145478
public void identifyNode(int nodeId) throws SerialInterfaceException {
		SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessagePriority.High);
    	byte[] newPayload = { (byte) nodeId };
    	newMessage.setMessagePayload(newPayload);
    	this.enqueue(newMessage);
	}
911147
public LocalTrustGraphNode addNode(final TrustGraphNodeId nodeId) {
        final LocalTrustGraphNode node = createNode(nodeId);
        addNode(node);
        return node;
    }