public abstract class BaseWiringComponent extends SignalingComponent
Constructor and Description |
---|
BaseWiringComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addSelectParameter(java.lang.String label,
java.lang.Object selectedValue,
java.lang.Object[] selectableValues,
java.lang.String key)
Convenient method to add a SelectParameter to the standard Parameter
set.
|
abstract void |
checkConnection() |
abstract void |
createMeasures()
Signaling:
|
Parameters |
getMainParameters() |
Measures |
getMeasures() |
java.lang.String |
getName()
(full) name of the WC as shown in the PropertyWindow
|
ParametersSet |
getParameters() |
double |
getSamplingTime() |
Signal |
getSignalType() |
Signal |
initSignalType(Signal signalType) |
void |
interceptStep(Signal sig) |
void |
notifyBeforeParameterChange(Parameters changedParameters)
Parameter:
|
void |
notifyPropertyChangedPre()
Parameters have changed (sent by DefaultSystemMeasure).
|
void |
putParameters(Parameters parameters)
Adds Parameters to the WC ParametersSet
|
void |
putParams(Params<?,?> params)
Adds Parameters to the WC ParametersSet
|
void |
setAutoshow()
Convenient method to be used in Wirings.
|
void |
setAutoshow(int xWindowLocation,
int yWindowLocation)
Convenient method to be used in Wirings.
|
void |
setMeasures(Measures measures)
Sets MeasureSet of this WC
|
void |
setParametersSet(ParametersSet parametersSet) |
void |
setParamsSet(ParamsSet paramsSet) |
void |
setSamplingTime(double ta) |
Signal |
setSignalType(Signal signalType) |
void |
setStepInterceptor(StepInterceptor stepInterceptor) |
abstract void |
step(Signal sig)
Is implemented in Wire and Systems.
|
void |
stepPre(Signal sig)
Signal coming to the WC (Ports call stepPre).
|
discoverStartableSystems, getFacade, getSignalingReceiver, initDelay, processSignaling, resetSimulation, setFacade, setSignalingReceiver
public Parameters getMainParameters()
public void putParameters(Parameters parameters)
parameters
- public void putParams(Params<?,?> params)
params
- Parameters facadepublic void setParamsSet(ParamsSet paramsSet)
public ParametersSet getParameters()
public void setParametersSet(ParametersSet parametersSet)
public void addSelectParameter(java.lang.String label, java.lang.Object selectedValue, java.lang.Object[] selectableValues, java.lang.String key)
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.public double getSamplingTime()
public void setSamplingTime(double ta)
public Measures getMeasures()
public void setMeasures(Measures measures)
measureSet
- public Signal getSignalType()
public void stepPre(Signal sig)
sig
- Signalpublic void interceptStep(Signal sig)
public void setStepInterceptor(StepInterceptor stepInterceptor)
public java.lang.String getName()
public abstract void step(Signal sig)
public void notifyBeforeParameterChange(Parameters changedParameters)
public void notifyPropertyChangedPre()
public abstract void createMeasures()
public abstract void checkConnection()
public void setAutoshow(int xWindowLocation, int yWindowLocation)
xWindowLocation
- x location where the properties window will be placed.yWindowLocation
- y location where the properties window will be placed.public void setAutoshow()