fr.emn.reactiveinput
Class Out

java.lang.Object
  extended byfr.emn.reactiveinput.Slot
      extended byfr.emn.reactiveinput.Out
Direct Known Subclasses:
MissingOut

public class Out
extends Slot

Pending: there are 3 types defined: type, supertype and value.type. Try to remove redondancies.


Field Summary
protected  fr.emn.reactiveinput.Value oldValue
           
 
Fields inherited from class fr.emn.reactiveinput.Slot
description, dynamic, help, mutable, name, owner, supertype, type
 
Constructor Summary
Out(Device owner, java.lang.String name, int type)
          USE: Design.
Out(MutableDevice owner, java.lang.String name, int supertype, boolean mutable)
          USE: Design.
Out(MutableDevice owner, java.lang.String name, int supertype, boolean mutable, boolean dynamic)
          USE: Design.
 
Method Summary
 In[] getConnected()
          REMOVE.
 int getConnectedType()
          USE : Design.
 boolean isValid()
          USE: Design / Execution.
protected  void sendSignal()
          Notifies the network for the changes in following input slots.
 void setBooleanValue(boolean newValue)
          USE: Execution.
 void setBooleanValue(boolean newValue, boolean signal)
          If signal == false, sends a signal only if value has changed.
 void setDoubleValue(double newValue)
          USE: Execution.
 void setDoubleValue(double newValue, boolean signal)
          USE: Execution.
 void setIntValue(int newValue)
          USE: Execution.
 void setIntValue(int newValue, boolean signal)
          USE: Execution.
 void setObjectValue(java.lang.Object newValue)
          USE: Execution.
 void setObjectValue(java.lang.Object newValue, boolean signal)
          USE: Execution.
 void setStringValue(java.lang.String newValue)
          USE: Execution.
 
Methods inherited from class fr.emn.reactiveinput.Slot
flatten, flatten, flatten, getDescription, getHelp, getName, getParent, getProperties, getSupertype, getType, isDynamic, isMutable, remove, rename, setDescription, setHelp, setInfo, setProperties, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oldValue

protected fr.emn.reactiveinput.Value oldValue
Constructor Detail

Out

public Out(Device owner,
           java.lang.String name,
           int type)
USE: Design.


Out

public Out(MutableDevice owner,
           java.lang.String name,
           int supertype,
           boolean mutable)
USE: Design. If mutable=true, a mutable slot is created.


Out

public Out(MutableDevice owner,
           java.lang.String name,
           int supertype,
           boolean mutable,
           boolean dynamic)
USE: Design.

Method Detail

getConnected

public In[] getConnected()
REMOVE. (This method should not be public).


getConnectedType

public int getConnectedType()
USE : Design. This method is used in Mutable Devices to adapt themselves to connected devices.

This method returns the best subtype matching all connected Input Slots (i.e., the Inf()), or ANY if no connection.

Specified by:
getConnectedType in class Slot

isValid

public boolean isValid()
USE: Design / Execution. Returns true if this slot will be able to produce values.

An output slot is valid if it belongs to an openable device.

Specified by:
isValid in class Slot

sendSignal

protected void sendSignal()
Notifies the network for the changes in following input slots.


setBooleanValue

public void setBooleanValue(boolean newValue)
USE: Execution.


setBooleanValue

public void setBooleanValue(boolean newValue,
                            boolean signal)
If signal == false, sends a signal only if value has changed. USE: Execution.


setDoubleValue

public void setDoubleValue(double newValue)
USE: Execution.


setDoubleValue

public void setDoubleValue(double newValue,
                           boolean signal)
USE: Execution.


setIntValue

public void setIntValue(int newValue)
USE: Execution.


setIntValue

public void setIntValue(int newValue,
                        boolean signal)
USE: Execution.


setObjectValue

public void setObjectValue(java.lang.Object newValue)
USE: Execution.


setObjectValue

public void setObjectValue(java.lang.Object newValue,
                           boolean signal)
USE: Execution.


setStringValue

public void setStringValue(java.lang.String newValue)
USE: Execution.