|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.data.repository.VerinecRepository
verinec.gui.VerinecStudio.StudioRepository
class VerinecStudio.StudioRepository
A repository to interact with the network currently represented in the gui.
Note that updates are NOT reflected in the gui!
Use new NwHub, new PCNode resp. addNode and the add... methods in PCNode to create new elements or delete elements.
Implementation: Relies on the VerinecStudio.repo for handling the lists of other projects.
| Field Summary |
|---|
| Fields inherited from class verinec.data.repository.VerinecRepository |
|---|
networks, nodes, projectName, validator |
| Constructor Summary | |
|---|---|
VerinecStudio.StudioRepository(String name)
Create the studio repository. |
|
| Method Summary | |
|---|---|
void |
addPhysicalNetwork(Element e)
Add a physical_network to the list of physical networks. |
void |
drop()
Drop this repository, that is remove all nodes and connections and globals and start with an empty network. |
Element |
getNodes()
Overwrite to declare no exception. |
Element |
getPhysicalNetworks()
Get the networks data of this project. |
String[] |
getProjectNames()
Get the names of all existing projects that can be opened with openProject(). |
void |
setNode(Element node)
Set a network Node. |
| Methods inherited from class verinec.data.repository.VerinecRepository |
|---|
getGlobals, getNode, getNodeNames, getNodesWithInterfaceIp, getProjectName, init, removeNode, setGlobals, setNodes, setPhysicalNetworks, validateNetworks, validateNode, validatePhysicalNetworks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VerinecStudio.StudioRepository(String name)
name - Project name.| Method Detail |
|---|
public String[] getProjectNames()
throws VerinecException
All implementations should also contain a similar method sgetProjectNames which is static, for use in the factory. (As Java does not allow static methods to be declared in an Interface, this feature can not be enforced.)
VerinecException - if some error occurs while trying to collect the project names.
public void drop()
throws VerinecException
VerinecStudio.newProject()
drop in interface IVerinecRepositorydrop in class VerinecRepositoryVerinecException - If the project could not be cleaned.
public void setNode(Element node)
throws VerinecException
VerinecStudio.addNode(int, int).
setNode in interface IVerinecRepositorysetNode in class VerinecRepositorynode - The Jdom Element of the node.
VerinecException - if the node is not valid or can not be stored.public Element getNodes()
getNodes in interface IVerinecRepositorygetNodes in class VerinecRepositoryVerinecRepository.getNodes()public Element getPhysicalNetworks()
getPhysicalNetworks in interface IVerinecRepositorygetPhysicalNetworks in class VerinecRepositorypublic void addPhysicalNetwork(Element e)
e - The network element to add to nw:physical.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||