Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a957d015

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

[imiger-vo] minor improvements

Zobrazit rozdíly:

sources/imiger-vo/src/main/java/cz/zcu/kiv/imiger/vo/BaseEdge.java
4 4
 * Class represents edge. Class contains attributes which are common for input JSON format and for
5 5
 * output JSON format (JSON between frontend and backend)
6 6
 */
7
public class BaseEdge {
7
public abstract class BaseEdge {
8 8
    /** identification number of edge */
9 9
    private int id;
10 10
    /** original ID of vertex from edge leads */
sources/imiger-vo/src/main/java/cz/zcu/kiv/imiger/vo/BaseVertex.java
4 4
 * Class represents vertex. Class contains attributes which are common for input JSON format and for
5 5
 * output JSON format (JSON between frontend and backend)
6 6
 */
7
public class BaseVertex {
7
public abstract class BaseVertex {
8 8

  
9 9
    /** New generated identification number. */
10 10
    private int id;
sources/imiger-vo/src/main/java/cz/zcu/kiv/imiger/vo/Vertex.java
26 26
        this.position = null;
27 27
    }
28 28

  
29
    /**
30
     * Create new vertex.
31
     * @param vertex instance of BaseVertex with set all parameters
32
     * @param attributes ist of all attributes. Every attribute is stored in String array in pair as {attribute name, attribute value}.
33
     */
34
    public Vertex(BaseVertex vertex, List<String[]> attributes){
35
        this(vertex.getId(), vertex.getName(), vertex.getArchetype(), vertex.getText(), attributes);
36
    }
37

  
29 38
    public List<String[]> getAttributes() {
30 39
        return attributes;
31 40
    }

Také k dispozici: Unified diff