Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
226 views
in Technique[技术] by (71.8m points)

Can we use Optaplanner for service composition

I'm looking for a solution that could help to generate a composition of services that is able to satisfy a given goal of the user. A very simple example could be a composition that is able to provide the environmental temperature in Fahrenheit based on a composition of a service providing the temperature in Celcius and a service that is able to convert temperature from Celcius to Fahrenheit. As said this is a very simple, quite static composition but I'm facing much more dynamic cases where the available services change at runtime. In this case the continuous planning could be very handy.

Is this something that could be achieved using Optaplanner? Can you give me some pointers?

Thanks in advance!

Kind regards, Johan,


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It sounds like OptaPlanner would be a good fit. I 'd start with the Cloud Balancing tutorial. Basically your Goal is CB's Computer class and your Service is CB's Process class.

Then mix in Continuous Planning and/or Real-time Planning (see user guide docs for those) to deal with changes at runtime.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...