Examples of Node


Examples of org.apache.tuscany.sca.topology.Node

    public void testReadTopology() throws Exception {
        URL url = getClass().getResource("runtime.topology");
        Runtime runtime = (Runtime)documentProcessor.read(null, null, url);
        assertNotNull(runtime);
       
        Node node0 = runtime.getNodes().get(0);
        Scheme scheme0 = node0.getSchemes("nodomain").get(0);
        assertEquals(scheme0.getName(), "http");
       
        Node node1 = runtime.getNodes().get(1);
        Component component0 = node1.getComponents("domainA").get(0);
        assertEquals(component0.getName(), "AddServiceComponent");
    }

Examples of org.apache.uima.ducc.common.Node

      IDuccProcessMap processMap = duccWorkJob.getProcessMap();
      Iterator<DuccId> resourceMapIterator = resourceMap.keySet().iterator();
      while(resourceMapIterator.hasNext()) {
        DuccId duccId = resourceMapIterator.next();
        IResource resource = resourceMap.get(duccId);
        Node node = resourceMap.get(duccId).getNode();
        NodeIdentity nodeId = node.getNodeIdentity();
        if(!processMap.containsKey(duccId)) {
          ProcessType processType = null;
          switch(duccWorkJob.getServiceDeploymentType()) {
          case custom:
          case other:

Examples of org.apache.velocity.runtime.parser.node.Node

            {
                return false;
            }
            else
            {
                Node pnode = node.jjtGetChild(2);
                String msg = "#foreach parameter " + pnode.literal() + " at "
                    + rsvc.getLog().formatFileString(uberInfo.getTemplateName(),
                       pnode.getLine(), pnode.getColumn())
                    + " is of type " + listObject.getClass().getName()
                    + " and is either of wrong type or cannot be iterated.";
                rsvc.getLog().error(msg);
                throw new VelocityException(msg);
            }

Examples of org.bladerunnerjs.model.engine.Node

  }
 
  @Test
  public void fileShouldBeASubPathOfTheGivenDir()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertEquals(new File(node.dir(), "path/to-file").getAbsolutePath(), node.file("path/to-file").getAbsolutePath());
  }

Examples of org.chasen.mecab.Node

  public void tearDown() throws Exception {
  }

  @Test
  public void testBasicHangulSentence() {
    Node node = mockNodeListFactory(new String[] {
        "진달래\tNNG,*,F,진달래,*,*,*,*,*",
        " 꽃\tNNG,*,T,꽃,*,*,*,*,*",
        "이\tJKS,*,F,이,*,*,*,*,*",
        " 피\tVV,*,F,피,*,*,*,*,*",
        "었\tEP,*,T,었,*,*,*,*,*",
 

Examples of org.checkerframework.dataflow.cfg.node.Node

  @Override
  NullnessValue visitAssignment(AssignmentNode node, SubNodeValues inputs,
      LocalVariableUpdates updates) {
    NullnessValue value = inputs.valueOfSubNode(node.getExpression());

    Node target = node.getTarget();
    if (target instanceof LocalVariableNode) {
      updates.set((LocalVariableNode) target, value);
    }

    if (target instanceof FieldAccessNode) {
      FieldAccessNode fieldAccess = (FieldAccessNode) target;
      ClassAndField targetField = tryGetFieldSymbol(target.getTree());
      setReceiverNullness(updates, fieldAccess.getReceiver(), targetField);
    }

    /*
     * We propagate the value of the target to the value of the assignment expressions as a whole.

Examples of org.cipango.diameter.node.Node

    return _buffer.toString();
  }
 
  public static void main(String[] args)
  {
    DiameterMessage message = new DiameterRequest(new Node(), Accounting.ACR, Accounting.ACCOUNTING_ORDINAL, "foo");
    message.getAVPs().add(Zh.ZH_APPLICATION_ID.getAVP());

    PrettyPrinter pp = new PrettyPrinter();
    message.accept(pp);
    System.out.println(pp);

Examples of org.cipango.util.PriorityQueue.Node

public class PriorityQueueTest extends TestCase
{
  public void testOne()
  {
    PriorityQueue queue = new PriorityQueue();
    queue.offer(new Node(123));
    assertEquals(123, queue.peek().getValue());
    assertEquals(1, queue.getSize());
    queue.offer(queue.peek(), 1234);
    assertEquals(1234, queue.peek().getValue());
    queue.offer(queue.peek(), 1);
    assertEquals(1, queue.poll().getValue());
    assertEquals(0, queue.getSize());
   
    Node t = new Node(4321);
    queue.offer(t);
    assertEquals(4321, queue.peek().getValue());
    queue.remove(t);
    assertEquals(0, queue.getSize());
    assertEquals(-1, t.getPosition());
    queue.remove(t);
    assertEquals(0, queue.getSize());
  }

Examples of org.cipango.util.TimerQueue.Node

 
  void fillQueue(int nb)
  {
    for (int i = 0; i < nb; i++)
    {
      Node node = new Node(Math.abs(_random.nextLong()));
      _queue.offer(node);
    }
    assertEquals(nb, _queue.getSize());
  }

Examples of org.codehaus.activecluster.Node

     * @param cluster
     * @return the elected Node
     * @throws JMSException
     */
    public Node doElection(Cluster cluster) throws JMSException {
        Node elect = cluster.getLocalNode();

        Map nodes = cluster.getNodes();
        for (Iterator i = nodes.values().iterator(); i.hasNext();) {
            Node node = (Node) i.next();
            if (elect.getName().compareTo(node.getName()) < 0) {
                elect = node;
            }
        }

        return elect;
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.