-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_info.java
More file actions
33 lines (31 loc) · 839 Bytes
/
node_info.java
File metadata and controls
33 lines (31 loc) · 839 Bytes
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
package ex1.src;
public interface node_info {
/**
* Return the key (id) associated with this node.
* Note: each node_data should have a unique key.
* @return
*/
public int getKey();
/**
* return the remark (meta data) associated with this node.
* @return
*/
public String getInfo();
/**
* Allows changing the remark (meta data) associated with this node.
* @param s
*/
public void setInfo(String s);
/**
* Temporal data (aka distance, color, or state)
* which can be used be algorithms
* @return
*/
public double getTag();
/**
* Allow setting the "tag" value for temporal marking an node - common
* practice for marking by algorithms.
* @param t - the new value of the tag
*/
public void setTag(double t);
}