<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.weizmann.ac.il/playgo/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.weizmann.ac.il/playgo/index.php?action=history&amp;feed=atom&amp;title=How_to_create_S2A-BPJ_integrated_solution</id>
		<title>How to create S2A-BPJ integrated solution - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.weizmann.ac.il/playgo/index.php?action=history&amp;feed=atom&amp;title=How_to_create_S2A-BPJ_integrated_solution"/>
		<link rel="alternate" type="text/html" href="https://wiki.weizmann.ac.il/playgo/index.php?title=How_to_create_S2A-BPJ_integrated_solution&amp;action=history"/>
		<updated>2026-07-26T06:18:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22.4</generator>

	<entry>
		<id>https://wiki.weizmann.ac.il/playgo/index.php?title=How_to_create_S2A-BPJ_integrated_solution&amp;diff=1287&amp;oldid=prev</id>
		<title>Smadar: Created page with &quot;There is great value in integrating parts of the same specification written in different BP implementations into a single running application. We describe here how to create a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.weizmann.ac.il/playgo/index.php?title=How_to_create_S2A-BPJ_integrated_solution&amp;diff=1287&amp;oldid=prev"/>
				<updated>2014-04-29T06:18:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;There is great value in integrating parts of the same specification written in different BP implementations into a single running application. We describe here how to create a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There is great value in integrating parts of the&lt;br /&gt;
same specification written in different BP implementations into a single running application. We describe here how to create an application that integrates scenarios written in LSC with ones written in BPJ.&lt;br /&gt;
&lt;br /&gt;
# Create an LSC project.&lt;br /&gt;
# Add the b-threads' source code to the LSC project under the 'src/bthreads/' directory.&lt;br /&gt;
# Play-in your LSCs.&lt;br /&gt;
# S2A listens out for BPJ events of type MessageEvent. Therefore BPJ events that participate in the LSC specification have to be of type MessageEvent. To generate MessageEvent, right-click a method in the system model, choose update and select the 'Generate corresponding BPJ event':&amp;lt;br&amp;gt;[[Image:generateBPJevent.png]]&amp;lt;br&amp;gt;The corresponding MessageEvent is generated in the 'src/bthreads/events' package.&lt;br /&gt;
# Play-out&lt;br /&gt;
## Select the S2A-BPJ strategy&lt;br /&gt;
### Righc-click the LSC project, chose Project Properties-&amp;amp;gt;PlayGo-&amp;amp;gt;Play-Out-&amp;amp;gt;Strategy and select the il.ac.wis.cs.bpjs2a.BPJCoordinatorStrategyImpl strategy.&lt;br /&gt;
## Add the b-threads' priority to the Project Properties-&amp;amp;gt;PlayGo-&amp;amp;gt;Play-Out-&amp;amp;gt;Behaviors-&amp;amp;gt;BPJ (PlayGo identifies all b-threads in the LSC project by scanning the project, once the relevant strategy was selected - as described in bullet 1).&lt;br /&gt;
##Disabling certain b-threads can be done by removing the check mark from the relevant b-threads in the Project Properties-&amp;amp;gt;PlayGo-&amp;amp;gt;Play-Out-&amp;amp;gt;Behaviors-&amp;amp;gt;BPJ.&lt;br /&gt;
# PlayGo generates, to the SystemModelMainGenerated.java file, the activation of all b-threads. If you provide your own main, make sure to add the b-threads activation code, for example:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 BThread  bt = new TestBThread();&lt;br /&gt;
 BProgram.bp.add(bt, 1.1);&lt;br /&gt;
 bt.startBThread();&lt;/div&gt;</summary>
		<author><name>Smadar</name></author>	</entry>

	</feed>