public class Link extends Object implements Comparable<Link>
Information. This object
connect from source information to target information.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
name
is a name of the link
|
protected Information |
source
is the start point of this link.
|
protected Information |
target
is the end point of this link.
|
| コンストラクタと説明 |
|---|
Link(String _name,
Information _source,
Information _target)
constructs a link object with source information (start point) and target
information (end point)
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
compareTo(Link o)
|
String |
getName() |
Information |
getSource() |
String |
getSourceName() |
Information |
getTarget() |
String |
getTargetName() |
String |
toString() |
protected String name
protected Information source
protected Information target
public Link(String _name, Information _source, Information _target)
_name - is the name of this link object_source - is the source information_target - is the target informationpublic int compareTo(Link o)
compareTo インタフェース内 Comparable<Link>public String getName()
public Information getSource()
public Information getTarget()
public String getSourceName()
public String getTargetName()
Copyright © 2018. All rights reserved.