Package services
Class Broker
java.lang.Object
services.Broker
public class Broker
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.ArrayList<java.lang.Integer>
classes
classes of VNFs that have the same constraints(package private) java.util.ArrayList<java.util.ArrayList<java.lang.Integer>>
classnodes
index of nodes in every class(package private) Codec
codec
Edge Vector codec(package private) VNFgraph
hypernodegraph
hyper node VNF-graph(package private) int[]
hypernodemapping
hypernode mapping(package private) int[]
mapping
node mapping(package private) Hypergraph
net
substrate network, hypergraph(package private) VNFgraph
newvnfgraph
aggregated VNF-graph(package private) java.util.ArrayList<java.lang.Integer>
partitioning
the index of every subgraph node in the VNF-graph(package private) VNFgraph[]
subgraphs
VNF-subgraphs(package private) VNFgraph
vnfgraph
VNF-graphs -
Constructor Summary
-
Method Summary
Modifier and Type Method Description int[]
aggregate()
generates mapping for the whole request from subgraph mappingsVNFgraph
compose()
composes graph partitions in one VNF-graphvoid
decompose(int[] constraints)
decomposes a VNF-graph in subgraphs according to given constraintsVNFgraph
gethypernodegraph()
int[]
gethypernodemapping()
VNFgraph[]
getsubgraphs()
int
isinarray(int[] a, int b)
int
isinclass(int i)
void
printaggregated()
void
printclasses()
void
printsegments()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vnfgraph
VNFgraph vnfgraphVNF-graphs -
subgraphs
VNFgraph[] subgraphsVNF-subgraphs -
net
Hypergraph netsubstrate network, hypergraph -
mapping
int[] mappingnode mapping -
hypernodemapping
int[] hypernodemappinghypernode mapping -
hypernodegraph
VNFgraph hypernodegraphhyper node VNF-graph -
newvnfgraph
VNFgraph newvnfgraphaggregated VNF-graph -
classes
java.util.ArrayList<java.lang.Integer> classesclasses of VNFs that have the same constraints -
classnodes
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> classnodesindex of nodes in every class -
partitioning
java.util.ArrayList<java.lang.Integer> partitioningthe index of every subgraph node in the VNF-graph -
codec
Codec codecEdge Vector codec
-
-
Constructor Details
-
Broker
-
Broker
-
-
Method Details
-
decompose
public void decompose(int[] constraints)decomposes a VNF-graph in subgraphs according to given constraints -
aggregate
public int[] aggregate()generates mapping for the whole request from subgraph mappings -
compose
composes graph partitions in one VNF-graph -
getsubgraphs
-
gethypernodegraph
-
gethypernodemapping
public int[] gethypernodemapping() -
isinclass
public int isinclass(int i) -
isinarray
public int isinarray(int[] a, int b) -
printclasses
public void printclasses() -
printsegments
public void printsegments() -
printaggregated
public void printaggregated()
-