public class HyperConnection
extends java.lang.Object
HyperConnection
class represents a edge-weighted
hypergraph composed of vertices named 0 through V - where each
directed hypereedge is of type HyperEdge
and is composed of a set of
inner-edges.Modifier and Type | Field and Description |
---|---|
EdgeWeightedDigraph |
graph
graph representing the meetings
|
static java.lang.String |
TAG
log information
|
Constructor and Description |
---|
HyperConnection() |
Modifier and Type | Method and Description |
---|---|
void |
add(HyperConnection remote_connection) |
void |
addHyperEdge(HyperEdge h2add)
Add the provided hyperedge.
|
void |
almost_connectSource2ConsolidateNode(int src) |
void |
connectSource2ConsolidateNode(int src) |
int |
getConsolidatedNode()
give the id of the consolidated node (in pratice the last one)
|
boolean |
getFromFile(android.content.Context ctx)
Extract the connexion file from a file (whose name is parametred in Configuration file)
|
void |
getfromString(java.lang.String connexionGraphString) |
HyperEdge |
getHyperEdge(HyperEdge h2get)
Check is the provided hyperedge is valid
if yes, it returns the hyperedge.
|
java.util.List<DirectedEdge> |
getHyperEdge(int src,
double id) |
void |
populateWithRandomConnectedHyperEdges(int src,
int nbHyperLink,
int max_meeting_Size) |
void |
populateWithRandomHyperEdges(int nbHyperLink,
int max_meeting_Size) |
void |
setCalibrated(Device node)
Set that the given node is calibrated
|
void |
spanning2ref(int hyperedgeNB,
int hyperedgeCard,
int from)
create a spanning hypergraph
|
void |
toFile(android.content.Context ctx)
save the connection graph/hypergraph in a file used for this purpose (
the name of the file is set in the Configuration class
|
java.lang.String |
toString()
Display some information related to the hypergraph
|
void |
unsetCalibrated(Device node)
Set that the given node is not calibrated
|
public static final java.lang.String TAG
public EdgeWeightedDigraph graph
public int getConsolidatedNode()
public void almost_connectSource2ConsolidateNode(int src)
public void connectSource2ConsolidateNode(int src)
public void populateWithRandomConnectedHyperEdges(int src, int nbHyperLink, int max_meeting_Size)
public void populateWithRandomHyperEdges(int nbHyperLink, int max_meeting_Size)
public void add(HyperConnection remote_connection)
public java.util.List<DirectedEdge> getHyperEdge(int src, double id)
public void setCalibrated(Device node)
node
- that need to be calibratedpublic void unsetCalibrated(Device node)
node
- that need to be set as uncalibratedpublic java.lang.String toString()
toString
in class java.lang.Object
public void toFile(android.content.Context ctx)
ctx
- contextpublic void getfromString(java.lang.String connexionGraphString)
connexionGraphString
- string including the connection graph (i.e. hypergraph)public boolean getFromFile(android.content.Context ctx)
ctx
- contextpublic HyperEdge getHyperEdge(HyperEdge h2get)
h2get
- hyper edgepublic void addHyperEdge(HyperEdge h2add)
h2add
- hyperedge to addpublic void spanning2ref(int hyperedgeNB, int hyperedgeCard, int from)
hyperedgeNB
- number of hyper edges in the hypergraphhyperedgeCard
- number of edges in the hypergraphfrom
- source of the spaning hypergraph