diff --git a/eraser-base/src/main/jastadd/Printing.jrag b/eraser-base/src/main/jastadd/Printing.jrag index b1761f17cdf003877f1f6b4ccb9b4314bfd51c8c..65abe29388fbc5ce31452f0651d21d7aa3127a26 100644 --- a/eraser-base/src/main/jastadd/Printing.jrag +++ b/eraser-base/src/main/jastadd/Printing.jrag @@ -121,6 +121,7 @@ aspect Printing { .addIds("groups", getNumGroup(), getGroups()) .addIds("items", getNumItem(), getItems()) .addOptionalPrettyPrint(getAggregationFunction()) + .addOptional("performance", hasFrequencySetting(), () -> getFrequencySetting().getID()) .build(); } diff --git a/eraser-base/src/test/resources/tests/ppc2/input.eraser b/eraser-base/src/test/resources/tests/ppc2/input.eraser index a2793872f590861be7a06194c8b1f1e0de424d0c..2eb128e32c3cd4dbb830c8a9bdce9ced32df1a84 100644 --- a/eraser-base/src/test/resources/tests/ppc2/input.eraser +++ b/eraser-base/src/test/resources/tests/ppc2/input.eraser @@ -1,6 +1,6 @@ Mqtt: incoming="ppc2/" outgoing="oh2/in" host="localhost" ; Item: id="iris1_item" label="Iris 1" state="121,88,68" topic="iris1_item/state" performance="ip1" ; -Group: id="my-group" items=["iris1_item"] ; +Group: id="my-group" items=["iris1_item"] performance="ip1" ; ThingType: id="skywriter-hat" label="SkyWriterHAT" description="SkyWriterHAT Gesture Recognition" parameters=["brokername"] channelTypes=["flick-type"] ; ChannelType: id="flick-type" itemType="String" label="Last Flick" description="Last Flick detected (and its direction)" category="Motion" readOnly ; Parameter: id="brokername" type="text" required label="Broker Name" description="Name of the broker as defined in the <broker>.url in services/mqtt.cfg. See the MQTT Binding for more information on how to configure MQTT broker connections." context="service" default="mosquitto" ; diff --git a/eraser-base/src/test/resources/tests/ppc2/output.eraser b/eraser-base/src/test/resources/tests/ppc2/output.eraser index 30855cfc04eb3dab0d42e419cb159959550d37e3..43800ce466630fe9cee0e11ec37c01eb3a5fa7ab 100644 --- a/eraser-base/src/test/resources/tests/ppc2/output.eraser +++ b/eraser-base/src/test/resources/tests/ppc2/output.eraser @@ -1,5 +1,5 @@ Item: id="iris1_item" label="Iris 1" state="121,88,68" topic="iris1_item/state" performance="ip1" ; -Group: id="my-group" items=["iris1_item"] ; +Group: id="my-group" items=["iris1_item"] performance="ip1" ; ThingType: id="skywriter-hat" label="SkyWriterHAT" description="SkyWriterHAT Gesture Recognition" parameters=["brokername"] channelTypes=["flick-type"] ; ChannelType: id="flick-type" label="Last Flick" description="Last Flick detected (and its direction)" itemType="String" category="Motion" readOnly ; Parameter: id="brokername" label="Broker Name" description="Name of the broker as defined in the <broker>.url in services/mqtt.cfg. See the MQTT Binding for more information on how to configure MQTT broker connections." type="Text" context="service" default="mosquitto" required ;