Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

de.tum.in.DWARF.event
Class InputDataSender

java.lang.Object
  extended by SvcProtPushSupplierPOA
      extended by de.tum.in.DWARF.event.EventSender
          extended by de.tum.in.DWARF.event.InputDataSender

public class InputDataSender
extends EventSender

A class to send and create InputDataEvents of all types.


Field Summary
static int TYPE_ANALOG_LIMITED
           
static int TYPE_ANALOG_UNLIMITED
           
static int TYPE_BOOL
           
static int TYPE_STRING
           
 
Constructor Summary
InputDataSender(int repeatAmount, org.omg.CORBA.ORB orb)
           
InputDataSender(org.omg.CORBA.ORB orb)
           
 
Method Summary
protected  void lostEventChannel()
          This mothod is called when disconnect_structured_push_supplier is called.
 SendResult send(int type)
           
 SendResult send(int type, java.lang.String eventName)
           
 void setAnalogLimitedValue(double value)
           
 void setAnalogUnlimitedValue(double value)
           
 void setBool(boolean flag)
           
 void setState(int type, InputDataEventType inputDataEventType)
           
 void setString(java.lang.String value)
           
 
Methods inherited from class de.tum.in.DWARF.event.EventSender
configureRepeatAmount, disconnect_structured_push_supplier, pushStructuredEvent, setConsumer, setFrequencyLogger, subscription_change
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BOOL

public static final int TYPE_BOOL
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_ANALOG_UNLIMITED

public static final int TYPE_ANALOG_UNLIMITED
See Also:
Constant Field Values

TYPE_ANALOG_LIMITED

public static final int TYPE_ANALOG_LIMITED
See Also:
Constant Field Values
Constructor Detail

InputDataSender

public InputDataSender(org.omg.CORBA.ORB orb)

InputDataSender

public InputDataSender(int repeatAmount,
                       org.omg.CORBA.ORB orb)
Parameters:
repeatAmount - Each event is sent as often as repeatAmount indicates
Method Detail

lostEventChannel

protected void lostEventChannel()
Description copied from class: EventSender
This mothod is called when disconnect_structured_push_supplier is called. Place code that needs to react on this fact here (e.g. to notify other objects).

Specified by:
lostEventChannel in class EventSender
See Also:
EventSender.lostEventChannel()

send

public SendResult send(int type,
                       java.lang.String eventName)
Parameters:
type - The static final ints defined in this class. They indicate, which object to send.

send

public SendResult send(int type)

setState

public void setState(int type,
                     InputDataEventType inputDataEventType)

setBool

public void setBool(boolean flag)

setString

public void setString(java.lang.String value)

setAnalogLimitedValue

public void setAnalogLimitedValue(double value)

setAnalogUnlimitedValue

public void setAnalogUnlimitedValue(double value)

Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

DWARF Java documentation | generated by Javadoc