Klasse BaseWiringComponent
java.lang.Object
de.labAlive.core.wiringComponent.SignalingComponent
de.labAlive.core.wiringComponent.BaseWiringComponent
- Bekannte direkte Unterklassen:
WiringComponentImpl
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.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidaddSelectParameter(String label, Object selectedValue, Object[] selectableValues, String key) Convenient method to add a SelectParameter to the standard Parameter set.abstract voidabstract voidSignaling:getName()(full) name of the WC as shown in the PropertyWindowdoubleinitSignalType(Signal signalType) voidinterceptStep(Signal sig) voidnotifyBeforeParameterChange(Parameters changedParameters) Parameter:voidParameters have changed (sent by DefaultSystemMeasure).voidputParameters(Parameters parameters) Adds Parameters to the WC ParametersSetvoidAdds Parameters to the WC ParametersSetvoidConvenient method to be used in Wirings.voidsetAutoshow(int xWindowLocation, int yWindowLocation) Convenient method to be used in Wirings.voidsetMeasures(Measures measures) Sets MeasureSet of this WCvoidsetParametersSet(ParametersSet parametersSet) voidsetParamsSet(ParamsSet paramsSet) voidsetSamplingTime(double ta) setSignalType(Signal signalType) voidsetStepInterceptor(StepInterceptor stepInterceptor) abstract voidIs implemented in Wire and Systems.voidSignal coming to the WC (Ports call stepPre).Von Klasse geerbte Methoden SignalingComponent
discoverStartableSystems, getFacade, getSignalingReceiver, initDelay, processSignaling, resetSimulation, setFacade, setSignalingReceiver
-
Konstruktordetails
-
BaseWiringComponent
public BaseWiringComponent()
-
-
Methodendetails
-
getMainParameters
- Gibt zurück:
- Main parameters of the WC
-
putParameters
Adds Parameters to the WC ParametersSet- Parameter:
parameters-
-
putParams
Adds Parameters to the WC ParametersSet- Parameter:
params- Parameters facade
-
setParamsSet
-
getParameters
-
setParametersSet
-
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 PropertyWindowselectedValue- preselected valueselectableValues- all selectable valueskey- 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
- Gibt zurück:
- MeasureSet of this WC
-
setMeasures
-
getSignalType
-
setSignalType
-
initSignalType
-
stepPre
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
-
setStepInterceptor
-
getName
(full) name of the WC as shown in the PropertyWindow- Gibt zurück:
- Name of the WC
-
step
Is implemented in Wire and Systems. -
notifyBeforeParameterChange
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).
-