Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:43:02+00:00 2026-06-08T10:43:02+00:00

We have an application that serves as a simulator for a type of agent

  • 0

We have an application that serves as a simulator for a type of agent in a distributed system. Its intended use is for integration testing and thus it has to be very flexible. We have a fluent interface, that might evolve into an internal DSL, for defining the agent’s behaviour: the test scenarios.

We also have a wizard for the users (the testers) to create the test scenarios but we find this to be very inefficient: the user themselves would have enough domain and technical knowledge to write the scenarios using the fluent interface while we’re wasting time programming the wizard that does exactly that.

We were therefore wondering if there’s any light “console” that would allow the users to write in, at runtime, the chained methods (or a DSL) with help of auto-completion and validation, just like we do while coding. If possible without having to fire up an eclipse instance.

Think of a light, embeddable “xText console” or a “groovy console with suggestions” for dynamically invoking the fluent interface methods or write the DSL.

Any ideas? How’s the easiest way for your users to use your DSL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:43:03+00:00Added an answer on June 8, 2026 at 10:43 am

    One way to do it is to use the Scala console:

    $ scala -classpath <your-class-files>
    

    It has dot-completion for methods. You can even take advantage of the fluent syntax where you omit the dot and parenthesis which is great for DSLs. Instead of:

    scala> "howdy".contains("how")
    res0: Boolean = true
    

    …you can write:

    scala> "howdy" contains "how"
    res1: Boolean = true
    

    Where “contains” could be a method of your DSL/fluent interface, of course.

    [Yes, I’m answering to myself, wuoh oh oh ow].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a WinForms application that uses SQL server to store its data. To
I have a rails app that serves some APIs to an iPhone application. I
I have an application that serves artifacts from files (pages from PDF files as
So I have a web application that serves some data...lets say if I query
I have an application on google app engine that serves an html file with
I have this senario. We have an application server that contains a few web
I have a server application that is compiled in 32 bit, and I want
We have a server application that we want to restrict non-users from triggerring it
I have a server application that consists of multiple OSGi bundles, some mine, some
I have a server application that needs to find and exchange small amounts of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.