summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/system/Node.java
blob: 9ab98124e90660a595ae25883bf07b9d6666d235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package net.transit.network.system;

/**
 * @author Kyle Gunger
 * @apiNote A node inside or outside a system. Provides acceptors and providers to other nodes.
 */
public interface Node
{
	
	/**Returns the groupIDs of groups the node interacts with
	 * 
	 * @return String[]
	 */
	public String[] groupsProvided();
	
	
	/**Get the system managing the node or {@code null} if there isn't one
	 * 
	 * @return System
	 */
	public System getSystem();
	
	
	/** Get the data of one of the TypeGroups the Node supports
	 * 
	 * @param groupID
	 * @return
	 */
	public Object getData(String groupID);
	
	/** Get the nodes that this node is connected to
	 * 
	 * @return Node[]
	 */
	public Node[] getConnections();
}