|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.networks.CombinationRules
public class CombinationRules
A set of combination rules defines how the combination of two networks is accomplished. Here is a list of all settings and what effect they have on the combination procedure:
ProteinLabelOrganism
ProteinNetwork.combineWith(ProteinNetwork, CombinationRules)
Nested Class Summary | |
---|---|
static class |
CombinationRules.CombinationType
Defines how the nodes of both source networks are combined into a new set of nodes |
static class |
CombinationRules.WeightMergePolicy
Defines how the weights of identical edges are combined for the resulting network |
Constructor Summary | |
---|---|
CombinationRules(CombinationRules.CombinationType type)
Creates a combination rule object using the given CombinationRules.CombinationType |
Method Summary | |
---|---|
CombinationRules.CombinationType |
getCombinationType()
Returns the combination type of this rules set. |
ProteinNetwork |
getMapping()
Returns the mapping network of this rules set. |
String |
getNewOrganism()
Returns the new organism name used in the combination. |
String |
getNodeMergeSeparator()
Returns the node label merge separator |
String |
getWeightMergeKey1()
Returns the first weight merge key. |
String |
getWeightMergeKey2()
Returns the second weight merge key. |
CombinationRules.WeightMergePolicy |
getWeightMergePolicy()
Returns the weight merge policy of this rules set. |
void |
setMapping(ProteinNetwork mapping)
Sets a mapping, mapped nodes will be merged into single nodes in the resulting network. |
void |
setNewOrganism(String newOrganism)
Set an organism name for the newly created nodes. |
void |
setNodeMergeSeparator(String separator)
Defines how the labels of merged nodes are separated. |
void |
setWeightMergePolicy(CombinationRules.WeightMergePolicy weightMerge)
Sets how the weights of identical edges are merged in the resulting network. |
void |
setWeightMergePolicy(CombinationRules.WeightMergePolicy weightMerge,
String key1,
String key2)
Sets how the weights of identical edges are merged in the resulting network. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinationRules(CombinationRules.CombinationType type)
CombinationRules.CombinationType
type
- combination type to be usedMethod Detail |
---|
public void setMapping(ProteinNetwork mapping)
public void setNewOrganism(String newOrganism)
ProteinLabelOrganism
public void setWeightMergePolicy(CombinationRules.WeightMergePolicy weightMerge)
weightMerge
- weight merge policy for the combinationpublic void setWeightMergePolicy(CombinationRules.WeightMergePolicy weightMerge, String key1, String key2)
weightMerge
- weight merge policy for the combinationkey1
- annotation key used for the weights from the first networkkey2
- annotation key used for the weights from the second networkpublic String getWeightMergeKey1()
#setWeightMergePolicy(data.networks.CombinationRules.WeightMergePolicy, String, String)}
public String getWeightMergeKey2()
#setWeightMergePolicy(data.networks.CombinationRules.WeightMergePolicy, String, String)}
public CombinationRules.CombinationType getCombinationType()
public ProteinNetwork getMapping()
null
if no mapping
network is setpublic String getNewOrganism()
public CombinationRules.WeightMergePolicy getWeightMergePolicy()
public void setNodeMergeSeparator(String separator)
mapping
.
separator
- separator string which will be put between the source
protein labelspublic String getNodeMergeSeparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |