Package mgui.neuro.graphs
Class NeuralNetGraph
java.lang.Object
edu.uci.ics.jung.graph.AbstractGraph<V,E>
edu.uci.ics.jung.graph.SparseGraph<AbstractGraphNode,AbstractGraphEdge>
mgui.interfaces.graphs.InterfaceAbstractGraph
mgui.neuro.graphs.NeuralNetGraph
- All Implemented Interfaces:
edu.uci.ics.jung.graph.Graph<AbstractGraphNode,AbstractGraphEdge>
,edu.uci.ics.jung.graph.Hypergraph<AbstractGraphNode,AbstractGraphEdge>
,java.io.Serializable
,NetworkGraphListener
,AttributeListener
,AttributeObject
,InterfaceObject
,PopupMenuObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
,IconObject
public class NeuralNetGraph extends InterfaceAbstractGraph
Extension of JUNG's DirectedSparseGraph designed to specifically represent instances
of NeuralNet. Requires vertices to be instances of NeuralNetNode and edges to be
instances of NeuralNetConnection.
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description AbstractNeuralNet
network
Fields inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
attributes, graphListeners, isDestroyed, name, treeNode, treeNodes, xml_block, xml_count, xml_itr, xml_nodes
Fields inherited from class edu.uci.ics.jung.graph.SparseGraph
directed_edges, INCIDENT, INCOMING, OUTGOING, undirected_edges, vertex_maps
-
Constructor Summary
Constructors Constructor Description NeuralNetGraph()
NeuralNetGraph(AbstractNeuralNet net)
-
Method Summary
Modifier and Type Method Description Attribute
getAttribute(java.lang.String attrName)
Returns a specific attribute for this object.AttributeList
getAttributes()
Returns the list of current attributes for this object.java.lang.String
getLocalName()
Returns the local name associated with this XML object.java.lang.String
getName()
Gets the name for this object.protected void
init()
void
networkUpdated(NetworkEvent e)
void
setAttribute(java.lang.String attrName, java.lang.Object newValue)
Sets a value for a specific attribute.void
setAttributes(AttributeList thisList)
Sets the list of attributes for this object.boolean
setFromNetwork(AbstractNeuralNet network)
java.lang.String
toString()
Methods inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
addEdge, addEdge, addEdge, addGraphListener, attributeUpdated, clean, clone, destroy, fireGraphListeners, fireGraphListeners, getAttributeValue, getDefaultLayout, getDTD, getLabelEdges, getLabelNodes, getNodes, getObjectIcon, getPopupMenu, getPopupMenu, getShortXML, getTreeLabel, getXML, getXML, getXMLSchema, graphUpdated, handlePopupEvent, handleXMLElementEnd, handleXMLElementStart, handleXMLString, isDestroyed, issueTreeNode, removeAllEdges, removeAllNodes, removeGraphListener, setName, setTreeNode, showPopupMenu, writeXML, writeXML, writeXML
Methods inherited from class edu.uci.ics.jung.graph.SparseGraph
addEdge, addVertex, containsEdge, containsVertex, findEdge, findEdgeSet, getDefaultEdgeType, getDest, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getFactory, getIncidentEdges, getInEdges, getNeighbors, getOutEdges, getPredecessors, getSource, getSuccessors, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertex
Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph
addEdge, addEdge, addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegree
Methods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, isIncident, isNeighbor
-
Field Details
-
network
-
-
Constructor Details
-
NeuralNetGraph
public NeuralNetGraph() -
NeuralNetGraph
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classInterfaceAbstractGraph
-
setFromNetwork
-
getAttribute
Description copied from interface:AttributeObject
Returns a specific attribute for this object.- Specified by:
getAttribute
in interfaceAttributeObject
- Overrides:
getAttribute
in classInterfaceAbstractGraph
- Returns:
-
getAttributes
Description copied from interface:AttributeObject
Returns the list of current attributes for this object.- Specified by:
getAttributes
in interfaceAttributeObject
- Overrides:
getAttributes
in classInterfaceAbstractGraph
- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObject
Sets a value for a specific attribute.- Specified by:
setAttribute
in interfaceAttributeObject
- Overrides:
setAttribute
in classInterfaceAbstractGraph
-
setAttributes
Description copied from interface:AttributeObject
Sets the list of attributes for this object.- Specified by:
setAttributes
in interfaceAttributeObject
- Overrides:
setAttributes
in classInterfaceAbstractGraph
-
networkUpdated
-
getName
public java.lang.String getName()Description copied from interface:NamedObject
Gets the name for this object.- Specified by:
getName
in interfaceNamedObject
- Overrides:
getName
in classInterfaceAbstractGraph
- Returns:
-
toString
public java.lang.String toString()- Overrides:
toString
in classInterfaceAbstractGraph
-
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObject
Returns the local name associated with this XML object.- Specified by:
getLocalName
in interfaceXMLObject
- Overrides:
getLocalName
in classInterfaceAbstractGraph
- Returns:
-