Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Drawing blocks with predefined inputs and outputs
[Eugenia] Drawing blocks with predefined inputs and outputs [message #590828] Thu, 22 July 2010 14:15
Cedric Moonen is currently offline Cedric MoonenFriend
Messages: 274
Registered: August 2009
Senior Member

I need to create a diagram editor which is somewhat similar to what is shown here: xed-nodes/

I need to be able to drop some predefined components on the diagram, but the difference is that I have a couple of different components. Each of these components have a fixed number of input and output ports.
So, when such a component is created on the diagram, all its ports should be immediately visible and the user shouldn't be able to remove a port (or to create additional ports in the component).
You could see this similar as an editor to edit electronic diagrams: each component (like RAM, CPU, ...) has a fixed number of pins.

The code for one of my component looks like this:
class EquivalentBlock extends PLCOpenBlock {
val InputPort Activate;
val InputPort S_ChannelA;
val InputPort S_ChannelB;
val InputPort DiscrepancyTime;

val OutputPort Ready;
val OutputPort S_EquivalentOut;
val OutputPort Error;
val OutputPort DiagCode;

Furthermore, those ports should have a fixed position and should have a specific label (for instance, in the previous code example, the Activate port should be labeled "Activate").

I have no clue how to implement such a functionality, and I even don't know if this is possible. This looks like a very useful use case.
Any clue how can reach something like that ?

Previous Topic:[Eugenia] Package references in generated models
Next Topic:[ETL] parameterised equivalent("rule")
Goto Forum:

Current Time: Wed May 23 19:04:08 GMT 2018

Powered by FUDForum. Page generated in 0.01641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top