Klasse BaseWiringComponent

java.lang.Object
de.labAlive.core.wiringComponent.SignalingComponent
de.labAlive.core.wiringComponent.BaseWiringComponent
Bekannte direkte Unterklassen:
WiringComponentImpl

public abstract class BaseWiringComponent extends SignalingComponent
Abstract class for systems and wires. Implements common tasks, e.g. Ta handling. Simulation: Forwards signal from stepPre to MeasureSet plotStep(sig). Parameter: Dummy implementation of notifyParameterChanged(). Signaling: Ta is set. SigMess is forwarded to MeasureSet.
  • Konstruktordetails

    • BaseWiringComponent

      public BaseWiringComponent()
  • Methodendetails

    • getMainParameters

      public Parameters getMainParameters()
      Gibt zurück:
      Main parameters of the WC
    • putParameters

      public void putParameters(Parameters parameters)
      Adds Parameters to the WC ParametersSet
      Parameter:
      parameters -
    • putParams

      public void putParams(Params<?,?> params)
      Adds Parameters to the WC ParametersSet
      Parameter:
      params - Parameters facade
    • setParamsSet

      public void setParamsSet(ParamsSet paramsSet)
    • getParameters

      public ParametersSet getParameters()
    • setParametersSet

      public void setParametersSet(ParametersSet parametersSet)
    • addSelectParameter

      public void addSelectParameter(String label, Object selectedValue, Object[] selectableValues, String key)
      Convenient method to add a SelectParameter to the standard Parameter set. Adds all items to the list of selectable values. (Used by systems implementations, e.g. SignalGenerator)
      Parameter:
      label - label (name) of the SelectParameter as it is display in the PropertyWindow
      selectedValue - preselected value
      selectableValues - all selectable values
      key - unique key to put and get this SelectParameter.
    • getSamplingTime

      public double getSamplingTime()
      Gibt zurück:
      samling time ta
    • setSamplingTime

      public void setSamplingTime(double ta)
    • getMeasures

      public Measures getMeasures()
      Gibt zurück:
      MeasureSet of this WC
    • setMeasures

      public void setMeasures(Measures measures)
      Sets MeasureSet of this WC
      Parameter:
      measureSet -
    • getSignalType

      public Signal getSignalType()
    • setSignalType

      public Signal setSignalType(Signal signalType)
    • initSignalType

      public Signal initSignalType(Signal signalType)
    • stepPre

      public void stepPre(Signal sig)
      Signal coming to the WC (Ports call stepPre). Make some general step preparations, e.g. sends plotstep to measureSet, then calls step().
      Parameter:
      sig - Signal
    • interceptStep

      public void interceptStep(Signal sig)
    • setStepInterceptor

      public void setStepInterceptor(StepInterceptor stepInterceptor)
    • getName

      public String getName()
      (full) name of the WC as shown in the PropertyWindow
      Gibt zurück:
      Name of the WC
    • step

      public abstract void step(Signal sig)
      Is implemented in Wire and Systems.
    • notifyBeforeParameterChange

      public void notifyBeforeParameterChange(Parameters changedParameters)
      Parameter:
    • notifyPropertyChangedPre

      public void notifyPropertyChangedPre()
      Parameters have changed (sent by DefaultSystemMeasure). See system.
    • createMeasures

      public abstract void createMeasures()
      Signaling:
    • checkConnection

      public abstract void checkConnection()
    • setAutoshow

      public void setAutoshow(int xWindowLocation, int yWindowLocation)
      Convenient method to be used in Wirings. The default measure (properties window / osci) will be automatically opened during initialization (processSignaling).
      Parameter:
      xWindowLocation - x location where the properties window will be placed.
      yWindowLocation - y location where the properties window will be placed.
    • setAutoshow

      public void setAutoshow()
      Convenient method to be used in Wirings. The default measure (properties window / osci) will be automatically opened during initialization (processSignaling).