v_sim.PairSet¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
data elements come from  | 
||
r  | 
set of pairs  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Gets emitted when any of the   | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.PairSet(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure.
- classmethod new()¶
 - Returns:
 a new
v_sim.PairSetobject.- Return type:
 
Define an object to handle all possible
v_sim.Pairfor a givenv_sim.NodeArray.New in version 3.8.
- get(ele1, ele2)¶
 - Parameters:
 ele1 (
v_sim.Element) – av_sim.Elementobject.ele2 (
v_sim.Element) – av_sim.Elementobject.
- Returns:
 the
v_sim.Pairstored in self linking ele1 and ele2.- Return type:
 
Retrieve the
v_sim.Pairlinking ele1 and ele2 as stroed in self if it exists, orNoneif not.New in version 3.8.
- getFromLink(link)¶
 - Parameters:
 link (
v_sim.PairLink) – av_sim.PairLinkobject.- Returns:
 the
v_sim.Pairstored in self containing link.- Return type:
 
Retrieve the
v_sim.Pairstored in self that contains link, orNoneif none.New in version 3.8.
- getNthPair(pos)¶
 - Parameters:
 pos (
int) – an integer.- Returns:
 the nth
v_sim.Pairin self.- Return type:
 
Retrieve the nth
v_sim.Pairstored in self.New in version 3.8.
- iter_new(all)¶
 - Parameters:
 all (
bool) – a boolean.- Returns:
 a
v_sim.PairSetIterlocation.- Return type:
 iter:
v_sim.PairSetIter
Creates an iterator over all the
v_sim.PairLinkof a set ofv_sim.Pair. If all isFalse, only visiblev_sim.PairLink, seev_sim.PairLink.setDrawn(), are iterated on.New in version 3.8.
- setModel(nodes)¶
 - Parameters:
 nodes (
v_sim.Data) – av_sim.Dataobject.- Returns:
 Trueif model is actually changed.- Return type:
 
Binds nodes population and unit to self.
New in version 3.8.
Signal Details¶
- v_sim.PairSet.signals.links_changed(pair_set, pair)¶
 - Signal Name:
 links-changed- Flags:
 - Parameters:
 pair_set (
v_sim.PairSet) – The object which received the signalpair (
v_sim.Pair) – thev_sim.Pairthat has changing links.
Gets emitted when any of the
v_sim.Pairof set has a change (addition or removal) in its list ofv_sim.PairLink.New in version 3.8.
Property Details¶
- v_sim.PairSet.props.data¶
 - Name:
 data- Type:
 - Default Value:
 - Flags:
 
data elements come from
- v_sim.PairSet.props.pairs¶
 - Name:
 pairs- Type:
 - Default Value:
 - Flags:
 
set of pairs