Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Framework for asynchronous process development  (Read 1697 times)
0 Members and 1 Guest are viewing this topic.
Offline SM

Junior Newbie




___/|\____


« Posted 2003-05-08 16:02:09 »

Hi
Our company Velare Technologies just released the beta version of our ATC Threading Java framework (http://www.velare.com/product/atct.htm)
It's a very interesting technology that can be used for development of various types of asynchronous processes, including game scripting.

ATCT is a pure Java framework based on Execution Context Reification mechanism, allowing operations with "pickled threads" using a simple API. Developers can use ATCT as flow language for programming of long running interruptible processes. Standard tools and OOP techniques can be used for main application development, as well as for script development. The framework makes possible to use various types of script level thread management such us Green Threads and Fibers.

The following is a simple code example for asynchronous method call:

public class HelloWorld implements ATCRunnable {

 public String getStringToPrint() throws ATCSignal // this is asynchronous method
 {
   return null;
 }

 public void run() throws AISignal {
   System.out.println(getStringToPrint());
 }

 public static void main(String[] args) throws Throwable {
   HelloWorld t = new HelloWorld();
   ATCThread atct = new ATCThread(t);

   //mc represents a call to getStringToPrint
   MethodCall mc = atct.start();

   //value "Hello World!!!" will be used to continue the execution and will appear in the print out.
   atct.resume("Hello World!!!");
 }

}


The framework is available free for download.

Thanks in advance for any feedback.

Serguei Mourachov
smourachov at velare.com

www.velare.com

Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2003-05-09 09:09:05 »

?

What is that good for? Can you you give me an example?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline SM

Junior Newbie




___/|\____


« Reply #2 - Posted 2003-05-09 12:58:47 »

ATCT allows you to use application level green threads. Each object that requires scripting can have its own sequential long-running flow implementing some behavior -a green (lightweight) thread.
You can map one Java (and native thread) to hundreds of such lightweight threads and schedule them as you want. It's possible to move the lightweight threads between Java threads. Moreover ATCT threads are serializable, it means that you can stop them and save to file for later use or send them to another machine and continue execution there.
Usually game developers use custom build scripting languages to achieve such functionality but using ATCT you can do everything in Java using well known  OOP techniques and design patterns.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #3 - Posted 2003-05-09 13:56:26 »

Ahhh thx, now I understand (I hope). Yes, that sounds pretty cool.  Grin

Today I use a command queue where commands are allowed to stay for an arbitrary time. But it is hard to maintain a state between multiple commands. You stuff you really be helpful there. Will look at it.....


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (39 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (36 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!