Commit 33c6ebcf authored by yannick legoc's avatar yannick legoc

Replaced Corba command zone notification.

parent 4c9a41cf
......@@ -233,16 +233,6 @@
<arg line="${idlFlags} ${idlCoreDir}/commandzone/CommandBoxDescriptor.idl" />
</exec>
<echo message="Generating CommandZoneEventPublisher.java" />
<exec executable="idl">
<arg line="${idlFlags} ${idlCoreDir}/commandzone/CommandZoneEventPublisher.idl" />
</exec>
<echo message="Generating CommandZoneEventSubscriber.java" />
<exec executable="idl">
<arg line="${idlFlags} ${idlCoreDir}/commandzone/CommandZoneEventSubscriber.idl" />
</exec>
<!-- common -->
<echo message="Generating ListIterator.java" />
<exec executable="idl">
......
/*
* Nomad Instrument Control Software
*
* Copyright 2011 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package fr.ill.ics.nscclient.notification.commandzone;
import fr.ill.ics.nomadserver.core.commandzone.CommandZoneEventSubscriberPOA;
public class CommandZoneEventSubscriberImpl extends CommandZoneEventSubscriberPOA {
private int ID;
private byte[] corbaID;
public int getID() {
return ID;
}
public void setID(int ID) {
this.ID = ID;
}
public void setByteID(byte[] corbaID) {
this.corbaID = corbaID;
}
public byte[] getCorbaID() {
return corbaID;
}
public void commandBoxStarted(int databaseID, int commandBoxID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxExecutionEvent(databaseID, commandBoxID, CommandBoxExecutionEvent.ExecutionState.STARTED));
}
public void commandBoxPaused(int databaseID, int commandBoxID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxExecutionEvent(databaseID, commandBoxID, CommandBoxExecutionEvent.ExecutionState.PAUSED));
}
public void commandBoxTerminated(int databaseID, int commandBoxID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxExecutionEvent(databaseID, commandBoxID, CommandBoxExecutionEvent.ExecutionState.FINISHED));
}
public void commandBoxProgressionChanged(int databaseID, int commandBoxID, double progression) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxProgressionEvent(databaseID, commandBoxID, progression));
}
public void commandBoxReset(int databaseID, int commandBoxID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxResetEvent(databaseID, commandBoxID));
}
public void commandBoxPropertyChanged(int databaseID, int commandBoxID, int propertyID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxPropertyEvent(databaseID, commandBoxID, propertyID));
}
public void commandZoneStarted(int commandZoneID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneExecutionEvent(commandZoneID, CommandZoneExecutionEvent.ExecutionState.STARTED));
}
public void commandZonePaused(int commandZoneID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneExecutionEvent(commandZoneID, CommandZoneExecutionEvent.ExecutionState.PAUSED));
}
public void commandZoneTerminated(int commandZoneID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneExecutionEvent(commandZoneID, CommandZoneExecutionEvent.ExecutionState.FINISHED));
}
public void commandZoneProgressionChanged(int commandZoneID, double progression) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneProgressionEvent(commandZoneID, progression));
}
public void commandZoneReset(int commandZoneID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneResetEvent(commandZoneID));
}
public void forLoopCurrentValueChanged(int databaseID, int forLoopCommandBoxID, int lineIndex, double currentValue) {
CommandZoneEventClient.getInstance().eventOccurred(new ForLoopCurrentValueChangeEvent(databaseID, forLoopCommandBoxID, lineIndex, currentValue));
}
public void commandZoneErrorOccurred(int commandZoneID, String message) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandZoneErrorEvent(commandZoneID, message));
}
public void commandBoxExpressionChanged(int databaseID, int commandBoxID) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxExpressionChangedEvent(databaseID, commandBoxID));
}
public void commandBoxExpressionValueChanged(int databaseID, int commandBoxID, boolean currentValue) {
CommandZoneEventClient.getInstance().eventOccurred(new CommandBoxExpressionValueChangedEvent(databaseID, commandBoxID, currentValue));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment