org.eu.sk.zero.acd
Class Node

java.lang.Object
  |
  +--org.eu.sk.zero.acd.Component
        |
        +--org.eu.sk.zero.acd.Node

public class Node
extends Component

Node of the security model. Nodes can be connected by edges and can be part of areas. Every node is of a certain type.

Version:
$Id: Node.java,v 1.8 2003/04/10 16:00:09 robo Exp $
See Also:
NodeType

Field Summary
 int xCoord
          Positional coordinate of this component
 int yCoord
          Positional coordinate of this component
 
Fields inherited from class org.eu.sk.zero.acd.Component
id, type
 
Constructor Summary
Node(org.eu.sk.zero.acd.ComponentType t, int x, int y)
          Constructs a new node of the given type at the given position
 
Method Summary
 Collection areasCollection()
          Currently not implemented.
 Iterator areasIterator()
          Currently not implemented.
 void draw(Graphics g)
          Draw this node with the graphics.
 void draw(Graphics g, int prop)
          Draw this node with the Graphics.
 Collection edgesFromCollection()
          Collection of all edges leading from this node.
 Iterator edgesFromIterator()
          Allows browsing all edges leading from this node
 Collection edgesToCollection()
          Collection of all edgesFrom leading to this node.
 Iterator edgesToIterator()
          Allows browsing all edges leading to this node
 String getX()
          String representation of the X coordinate
 String getY()
          String representation of the Y coordinate
 Iterator nodesConnectedFromIterator(org.eu.sk.zero.acd.EdgeType t)
          All nodes which are connected to this node by an edge of certain type
 Iterator nodesConnectedToIterator(org.eu.sk.zero.acd.EdgeType t)
          All nodes which are connected from this node by an edge of certain type
 
Methods inherited from class org.eu.sk.zero.acd.Component
addValue, deselect, getId, getType, hide, isError, isHidden, isSelected, select, setError, show, toString, value, value, valueIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xCoord

public int xCoord
Positional coordinate of this component


yCoord

public int yCoord
Positional coordinate of this component

Constructor Detail

Node

public Node(org.eu.sk.zero.acd.ComponentType t,
            int x,
            int y)
Constructs a new node of the given type at the given position

Method Detail

edgesFromIterator

public Iterator edgesFromIterator()
Allows browsing all edges leading from this node


edgesToIterator

public Iterator edgesToIterator()
Allows browsing all edges leading to this node


edgesFromCollection

public Collection edgesFromCollection()
Collection of all edges leading from this node.


edgesToCollection

public Collection edgesToCollection()
Collection of all edgesFrom leading to this node.


areasIterator

public Iterator areasIterator()
Currently not implemented.


areasCollection

public Collection areasCollection()
Currently not implemented.


nodesConnectedToIterator

public Iterator nodesConnectedToIterator(org.eu.sk.zero.acd.EdgeType t)
All nodes which are connected from this node by an edge of certain type


nodesConnectedFromIterator

public Iterator nodesConnectedFromIterator(org.eu.sk.zero.acd.EdgeType t)
All nodes which are connected to this node by an edge of certain type


getX

public String getX()
String representation of the X coordinate


getY

public String getY()
String representation of the Y coordinate


draw

public void draw(Graphics g,
                 int prop)
Draw this node with the Graphics.

Parameters:
prop - represents the state of this node.
See Also:
NodeType

draw

public void draw(Graphics g)
Draw this node with the graphics.