/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package medusa.mulic;

import java.util.Map;
import java.util.Set;
import medusa.graph.Graph;
import medusa.graph.Node;

/**
 *
 * @author Sean Hooper 
 * DOE-JGI 2008
 */
public class MulicProtein {
    private

    String name;
    private int degree;
    private Set interactions;
    private boolean done;
    
    
    public MulicProtein(Graph g, Node n){
        name=n.getLabel();
        
        Graph gtemp=g.subGraph(n);
        Map nodes=gtemp.getNodes();
        // remove the node itself from the map
        nodes.remove(n.getLabel());
        // get the keyset. these are the interactors
        interactions=nodes.keySet();
        degree=interactions.size();
        done=false;
    }

    public String getName() {
        return name;
    }

    public int getDegree() {
        return degree;
    }

    public Set getInteractions() {
        return interactions;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }
    
    

}

 

Ads help maintain this website.