Component

public interface Component extends Runnable

The Component class.

Author:Cosmin Arad <cosmin@sics.se>, Jim Dowling <jdowling@sics.se>, Lars Kroll <lkroll@kth.se>

Methods

control

public Positive<ControlPort> control()
Returns:the component’s control port.

escalateFault

public void escalateFault(Fault fault)

getComponent

public ComponentDefinition getComponent()

getControl

public Positive<ControlPort> getControl()

Gets the control.

Returns:the control port

getNegative

public <P extends PortType> Negative<P> getNegative(Class<P> portType)

Gets the negative.

Parameters:
  • portType – the port type
Returns:

the negative

getPositive

public <P extends PortType> Positive<P> getPositive(Class<P> portType)

Gets the positive.

Parameters:
  • portType – the port type
Returns:

the positive

id

public UUID id()

provided

public <P extends PortType> Positive<P> provided(Class<P> portType)

returns the portType port provided by the component.

Parameters:
  • <P>
  • portType

required

public <P extends PortType> Negative<P> required(Class<P> portType)

returns the portType port required by the component.

Parameters:
  • <P>
  • portType

state

public State state()