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 AbstractNeuralNetnetworkFields inherited from class mgui.interfaces.graphs.InterfaceAbstractGraph
attributes, graphListeners, isDestroyed, name, treeNode, treeNodes, xml_block, xml_count, xml_itr, xml_nodesFields 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 AttributegetAttribute(java.lang.String attrName)Returns a specific attribute for this object.AttributeListgetAttributes()Returns the list of current attributes for this object.java.lang.StringgetLocalName()Returns the local name associated with this XML object.java.lang.StringgetName()Gets the name for this object.protected voidinit()voidnetworkUpdated(NetworkEvent e)voidsetAttribute(java.lang.String attrName, java.lang.Object newValue)Sets a value for a specific attribute.voidsetAttributes(AttributeList thisList)Sets the list of attributes for this object.booleansetFromNetwork(AbstractNeuralNet network)java.lang.StringtoString()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, writeXMLMethods 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, removeVertexMethods 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, outDegreeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegreeMethods 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:
initin classInterfaceAbstractGraph
-
setFromNetwork
-
getAttribute
Description copied from interface:AttributeObjectReturns a specific attribute for this object.- Specified by:
getAttributein interfaceAttributeObject- Overrides:
getAttributein classInterfaceAbstractGraph- Returns:
-
getAttributes
Description copied from interface:AttributeObjectReturns the list of current attributes for this object.- Specified by:
getAttributesin interfaceAttributeObject- Overrides:
getAttributesin classInterfaceAbstractGraph- Returns:
-
setAttribute
public void setAttribute(java.lang.String attrName, java.lang.Object newValue)Description copied from interface:AttributeObjectSets a value for a specific attribute.- Specified by:
setAttributein interfaceAttributeObject- Overrides:
setAttributein classInterfaceAbstractGraph
-
setAttributes
Description copied from interface:AttributeObjectSets the list of attributes for this object.- Specified by:
setAttributesin interfaceAttributeObject- Overrides:
setAttributesin classInterfaceAbstractGraph
-
networkUpdated
-
getName
public java.lang.String getName()Description copied from interface:NamedObjectGets the name for this object.- Specified by:
getNamein interfaceNamedObject- Overrides:
getNamein classInterfaceAbstractGraph- Returns:
-
toString
public java.lang.String toString()- Overrides:
toStringin classInterfaceAbstractGraph
-
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObjectReturns the local name associated with this XML object.- Specified by:
getLocalNamein interfaceXMLObject- Overrides:
getLocalNamein classInterfaceAbstractGraph- Returns:
-