Skip to content

Commit

Permalink
Update Launchpad plugin toward GAMA2024-06
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitgaudou committed Feb 22, 2024
1 parent 4cc6236 commit c8aa41d
Show file tree
Hide file tree
Showing 51 changed files with 56 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mit.feature.launchpad</name>
<name>gama.experimental.feature.launchpad</name>
<comment></comment>
<projects>
</projects>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="mit.feature.launchpad"
id="gama.experimental.feature.launchpad"
label="LaunchPad"
version="1.0.0.qualifier">
version="1.0.0.qualifier"
provider-name="MIT MEDIA Lab">

<description url="http://www.example.com/description">
[Enter Feature Description here.]
Expand All @@ -21,10 +22,7 @@
</url>

<plugin
id="mit.gaml.extension.launchpad"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
id="gama.experimental.launchpad"
version="0.0.0"/>

</feature>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>msi.gama</groupId>
<artifactId>mit.feature.launchpad</artifactId>
<artifactId>gama.experimental.feature.launchpad</artifactId>
<packaging>eclipse-feature</packaging>
<parent>
<groupId>msi.gama</groupId>
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions gama.experimental.launchpad/.factorypath
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<factorypath>
<factorypathentry kind="WKSPJAR" id="/gama.processor/gama.processor.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mit.gaml.extension.launchpad</name>
<name>gama.experimental.launchpad</name>
<comment></comment>
<projects>
</projects>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: mit.gaml.extension.launchpad
Bundle-SymbolicName: mit.gaml.extension.launchpad;singleton:=true
Bundle-Name: gama.experimental.launchpad
Bundle-SymbolicName: gama.experimental.launchpad;singleton:=true
Bundle-Vendor: MIT MEDIA Lab
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: msi.gama.core,
msi.gama.ext
Require-Bundle: gama.core,
gama.dependencies
Bundle-ClassPath: libs/lib/hazelcast-2.6.jar,
libs/lib/jackson-annotations-2.2.2.jar,
libs/lib/jackson-core-2.2.2.jar,
Expand Down Expand Up @@ -71,6 +72,7 @@ Export-Package: com.fasterxml.jackson.annotation,
com.hazelcast.security,
com.hazelcast.util,
com.hazelcast.util.concurrent,
gama.experimental.launchpad.skills,
gaml.additions.launchpad,
io.netty.bootstrap,
io.netty.buffer,
Expand Down Expand Up @@ -114,7 +116,6 @@ Export-Package: com.fasterxml.jackson.annotation,
io.netty.util.internal,
io.netty.util.internal.chmv8,
io.netty.util.internal.logging,
mit.gaml.extension.launchpad.skills,
net.thecodersbreakfast.lp4j.api,
net.thecodersbreakfast.lp4j.emulator,
net.thecodersbreakfast.lp4j.midi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</buildSpec>
<natures>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
<nature>msi.gama.application.gamaNature</nature>
<nature>msi.gama.application.pluginNature</nature>
<nature>gama.ui.application.gamaNature</nature>
<nature>gama.ui.application.pluginNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ experiment Displays type: gui
display View_change_color
{
grid cell border: #black;
event "pad_down" type: "launchpad" action: updateGrid;
event "pad_down" type: "launchpad" {ask simulation {do updateGrid;}}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<extension
point="gama.event_layer">
<implementation
class="mit.gaml.extension.launchpad.skills.LaunchPadEventLayer">
class="gama.experimental.launchpad.skills.LaunchPadEventLayer">
</implementation>
</extension>
</plugin>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>msi.gama</groupId>
<artifactId>mit.gaml.extension.launchpad</artifactId>
<artifactId>gama.experimental.launchpad</artifactId>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>msi.gama</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,27 @@
*
*
**********************************************************************************************/
package mit.gaml.extension.launchpad.skills;
package gama.experimental.launchpad.skills;

import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

import msi.gama.common.interfaces.IDisplaySurface;
import msi.gama.common.interfaces.IEventLayerDelegate;
import msi.gama.common.interfaces.IGraphics;
import msi.gama.common.interfaces.ILayer;
import msi.gama.metamodel.agent.IAgent;
import msi.gama.outputs.layers.AbstractLayer;
import msi.gama.outputs.layers.EventLayerStatement;
import msi.gama.outputs.layers.ILayerData;
import msi.gama.outputs.layers.ILayerStatement;
import msi.gama.outputs.layers.LayerData;
import msi.gama.runtime.IScope;
import msi.gama.runtime.IScope.IGraphicsScope;
import msi.gama.runtime.exceptions.GamaRuntimeException;
import msi.gaml.descriptions.StatementDescription;
import msi.gaml.statements.IExecutable;
import gama.core.common.interfaces.IDisplaySurface;
import gama.core.common.interfaces.IEventLayerDelegate;
import gama.core.common.interfaces.IGraphics;
import gama.core.common.interfaces.ILayer;
import gama.core.metamodel.agent.IAgent;
import gama.core.outputs.layers.EventLayerStatement;
import gama.core.outputs.layers.ILayerData;
import gama.core.outputs.layers.ILayerStatement;
import gama.core.outputs.layers.LayerData;
import gama.core.runtime.IScope;
import gama.core.runtime.IScope.IGraphicsScope;
import gama.core.runtime.exceptions.GamaRuntimeException;
import gama.gaml.statements.IExecutable;
import net.thecodersbreakfast.lp4j.api.BackBufferOperation;
import net.thecodersbreakfast.lp4j.api.Button;
import net.thecodersbreakfast.lp4j.api.Color;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package mit.gaml.extension.launchpad.skills;
package gama.experimental.launchpad.skills;

import msi.gama.metamodel.shape.GamaPoint;
import msi.gama.metamodel.shape.ILocation;
import msi.gama.precompiler.GamlAnnotations.action;
import msi.gama.precompiler.GamlAnnotations.arg;
import msi.gama.precompiler.GamlAnnotations.doc;
import msi.gama.precompiler.GamlAnnotations.example;
import msi.gama.precompiler.GamlAnnotations.getter;
import msi.gama.precompiler.GamlAnnotations.skill;
import msi.gama.precompiler.GamlAnnotations.variable;
import msi.gama.precompiler.GamlAnnotations.vars;
import msi.gama.precompiler.IConcept;
import msi.gama.runtime.GAMA;
import msi.gama.runtime.IScope;
import msi.gama.runtime.exceptions.GamaRuntimeException;
import msi.gama.util.IList;
import msi.gaml.skills.Skill;
import msi.gaml.types.IType;
import gama.core.metamodel.shape.GamaPoint;
import gama.annotations.precompiler.GamlAnnotations.action;
import gama.annotations.precompiler.GamlAnnotations.arg;
import gama.annotations.precompiler.GamlAnnotations.doc;
import gama.annotations.precompiler.GamlAnnotations.example;
import gama.annotations.precompiler.GamlAnnotations.getter;
import gama.annotations.precompiler.GamlAnnotations.skill;
import gama.annotations.precompiler.GamlAnnotations.variable;
import gama.annotations.precompiler.GamlAnnotations.vars;
import gama.annotations.precompiler.IConcept;
import gama.core.runtime.GAMA;
import gama.core.runtime.IScope;
import gama.core.runtime.exceptions.GamaRuntimeException;
import gama.core.util.IList;
import gama.gaml.skills.Skill;
import gama.gaml.types.IType;
import net.thecodersbreakfast.lp4j.api.BackBufferOperation;
import net.thecodersbreakfast.lp4j.api.Button;
import net.thecodersbreakfast.lp4j.api.Color;
Expand Down Expand Up @@ -48,7 +47,7 @@ public String getButtonPressed() {
}

@getter ("padPressed")
public ILocation getPadPressed() {
public GamaPoint getPadPressed() {
final GamaPoint p = new GamaPoint(LaunchPadEventLayer.pressedPad.getX(), LaunchPadEventLayer.pressedPad.getY());
return p;
}
Expand Down
3 changes: 0 additions & 3 deletions mit.gaml.extension.launchpad/.factorypath

This file was deleted.

0 comments on commit c8aa41d

Please sign in to comment.