All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uci.ics.jung.io.graphml.HyperEdgeMetadata Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2008, The JUNG Authors
 *
 * All rights reserved.
 *
 * This software is open-source under the BSD license; see either
 * "license.txt" or
 * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
 */

package edu.uci.ics.jung.io.graphml;

import java.util.ArrayList;
import java.util.List;

/**
 * Metadata structure for the 'hyperedge' GraphML element.
 *
 * @author Nathan Mittler - [email protected]
 *
 * @see "http://graphml.graphdrawing.org/specification.html"
 */
public class HyperEdgeMetadata extends AbstractMetadata {

    private String id;
    private String description;
    private Object edge;
    final private List endpoints = new ArrayList();
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void addEndpoint( EndpointMetadata endpoint ) {
        endpoints.add(endpoint);
    }
    
    public List getEndpoints() {
        return endpoints;
    }

    public Object getEdge() {
        return edge;
    }

    public void setEdge(Object edge) {
        this.edge = edge;
    }

    public MetadataType getMetadataType() {
        return MetadataType.HYPEREDGE;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy