Questions tagged [bidirectional]

"Bidirectional" refers to any process or structure that works in two directions. Use the tag `bidi` for bidirectional text instead of this tag.

"Bidirectional" is a general concept and can have a lot of meanings:

  • bidirectional text, see
  • bidirectional associations of data
  • bidirectional synchronization
  • bidirectional mapping
  • bidirectional communication
  • bidirectional search algorithms

See also: https://en.wikipedia.org/wiki/Bidirectional

493 questions
6
votes
2 answers

IPC between Python and C#

I want to pass data between a Python and a C# application in Windows (I want the channel to be bi-directional) In fact I wanna pass a struct containing data about a network packet that I've captured with C# (SharpPcap) to the Python app and then…
Mehdi Asgari
  • 2,111
  • 3
  • 17
  • 18
6
votes
4 answers

Java key - key map

I need a kind of map which is accessible in two directions, so with a key-key structure instead of key-value. Does this exist in Java? If not, what is the best way to create it? So example: mySpecialHashMap.put("key1",…
Fortega
  • 19,463
  • 14
  • 75
  • 113
5
votes
1 answer

Composite pattern with bidirectional association between Component and Composite

I have the problem mentioned in title of this post. By default, Composite Pattern has explicit implementation of Composite -> Component association. But I also need to implement association in reverse direction : Component -> Composite. In short,…
slomir
  • 407
  • 2
  • 6
  • 16
5
votes
1 answer

Hibernate: bi-directional one-to-many with one as parent

I'm trying to setup a bi-directional one-to-many relationship with "one" as parent I have a parent: @Entity public class VideoOnDemand { @OneToMany(cascade = CascadeType.ALL) @LazyCollection(LazyCollectionOption.FALSE) @JoinColumn(name =…
weekens
  • 8,064
  • 6
  • 45
  • 62
5
votes
2 answers

Prolog bidirectional predicate

I have to create family relations in Prolog for an assignment and I stumbled upon this problem. man(john). woman(lisa). married(john,lisa). ?- married(john,X). X = lisa. ?- married(X,john). false. How to make this predicate work in two ways? If…
Sava
  • 51
  • 2
5
votes
1 answer

ICU Layout sample renders text differently than Microsoft Notepad and Word

I have a bidirectional text 1002 -ابو ماجد الانصاري Most editors notepad++, notepad etc. show the text as it is shown here. But when I get this text processed through ICU the number is shifted to the right then spaces and hyphen and then Arabic.…
MOE
  • 53
  • 5
5
votes
0 answers

Bi-directional WCF Client-Server Communication

I have been working for weeks on creating a client/server to control a music-server application located on the server-side that is controlled by several client apps located across the LAN. I've been successful in getting the client-side to…
Bill
  • 335
  • 1
  • 4
  • 21
5
votes
2 answers

Gae Jdo persistance on one-to-many owned relationship with bidirectional navigation

I'm trying to persist a one-to-many owned relationship with bidirectional navigation in GAE using JDO. I manually add the Contact to User class, and I would expect that in the end the Contact will have a reference to the parent User object. If I…
raisercostin
  • 8,777
  • 5
  • 67
  • 76
5
votes
2 answers

How can I create a multilingual android application for right to left languages?

I have read How can I create a multilingual android application? and Do android support multiple languages? and I know about creating an android application with multiple languages. But my problem is about showing right-to-left and left-to-right…
Bob
  • 22,810
  • 38
  • 143
  • 225
5
votes
2 answers

Hibernate OneToMany bi-directional relation is slow

I have Sessions and Users classes with following bi-directional OneToManymapping(generated with hibernate reverse engineering tool): public class Users { @OneToMany(fetch=FetchType.LAZY, mappedBy="users") public Set getSessionses()…
Oleksandr.Bezhan
  • 2,028
  • 3
  • 22
  • 31
5
votes
4 answers

Why is it necessary to distinguish one side of a bidirectional relationship in orm as an owning side?

In a one-to-many relationship usualy the field annotated with @ManyToOne is the owner - the other side has 'mappedBy' attribute. However if I skip the 'mappedBy' and annotate both sides with @JoinColumn (same column) I can update both sides -…
4
votes
2 answers

Can an EJB server side send an event to an EJB client side?

I wonder if it is possible to do something along these lines: 1) Server side (EJB class) @Statefull public class SomeEJB implements SomeEJBRemote { @Resource private SessionContext sessionContext; //(...) public void someMethod(Record record){ …
Luis Soeiro
  • 4,262
  • 6
  • 35
  • 45
4
votes
2 answers

Is there a way to use Guava's HashBiMap with eviction?

I'm working with an enterprise level Java back end application and I need to build in token based user authentication. The front end utilizes PHP and communicates with the Java back end via SOAP. I thought about using Guava's HashBiMap to help me…
Mark Bouchard
  • 851
  • 1
  • 9
  • 20
4
votes
2 answers

R reciprocal edges in igraph in R

I am working with graphs in R. I am currently using igraph and I would like to be able to plot bidirectional edges "reciprocal edges" of a graph. So far I've seen it is possible to plot "bidirectional" graphs but not reciprocal edges, for example:…
megyn
  • 43
  • 1
  • 4
4
votes
1 answer

How do I make sure that a message was received in gRPC bidirectional streaming?

How do I know that the message I am sending through an gRPC stream was received on the other end? Is there a build in way to do that in gRPC bidirectional streaming or do I need to just use streaming and then send a response back? Proto…
Hugo
  • 41
  • 1
  • 2