View Javadoc

1   /*
2    * Zemucan: A Syntax Assistant for DB2
3    * Copyright (C) 2009, 2010 Andres Gomez Casanova
4    *
5    * This file is part of Zemucan.
6    *
7    * Zemucan is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as published by
9    * the Free Software Foundation; either version 3 of the License, or
10   * (at your option) any later version.
11   *
12   * Zemucan is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public License
18   * along with this library; if not, see <http://www.gnu.org/licenses/>.
19   *
20   * Contact:
21   * a n g o c a  at  y a h o o  dot  c o m
22   * Cra. 45 No 61 - 31, Bogota, Colombia.
23   *
24   * Author:   $LastChangedBy: angoca $:
25   * Date:     $LastChangedDate: 2011-03-06 23:10:20 -0500 (dom, 06 mar 2011) $:
26   * Revision: $LastChangedRevision: 1917 $:
27   * URL:      $HeadURL: https://zemucan.svn.sourceforge.net/svnroot/zemucan/branches/zemucan_v1/source-code/graph/src/main/java/name/angoca/zemucan/core/graph/model/NextNode.java $:
28   */
29  package name.angoca.zemucan.core.graph.model;
30  
31  /**
32   * This objects abstracts a set of possibles way in just one. This is useful for
33   * factoring several way in a common point.
34   * <p>
35   * <b>Control Version</b>
36   * <p>
37   * <ul>
38   * <li>1.0.0 Class creation.</li>
39   * </ul>
40   *
41   * @author Andres Gomez Casanova <a
42   *         href="mailto:a n g o c a at y a h o o dot c o m">(AngocA)</a>
43   * @version 1.0.0 2010-09-03
44   */
45  public class NextNode extends TrajectoryGraphNode {
46  
47      /**
48       * Constructor of the Next Node.
49       *
50       * @param name
51       *            Name of the node.
52       * @param graph
53       *            Associated graph.
54       */
55      public NextNode(final String/* ! */name, final Graph/* ! */graph) {
56          super(name, graph);
57      }
58  
59      /**
60       * It should be never be called. Actually, this node is an abstraction of
61       * the possible ways from a node, and when the parent node is getting the
62       * ways, this node is node passed as a way; instead, the ways of this node
63       * are passed to the parent.
64       *
65       * @see name.angoca.zemucan.core.graph.model.AbstractGraphNode#represent(java.lang.String)
66       */
67      @Override
68      public final boolean represent(final String/* ! */token) {
69          assert false;
70          return false;
71      }
72  }