Package se.sics.kompics
Interface Component
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
ComponentCore
,JavaComponent
public interface Component extends Runnable
The
Component
class.- Version:
- $Id$
- Author:
- Cosmin Arad <[email protected]>, Jim Dowling <[email protected]>, Lars Kroll <[email protected]>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Component.State
-
Method Summary
Modifier and Type Method Description Positive<ControlPort>
control()
void
escalateFault(Fault fault)
ComponentDefinition
getComponent()
Positive<ControlPort>
getControl()
Gets the control.<P extends PortType>
Negative<P>getNegative(Class<P> portType)
Gets a negative (required) instance of the given port.<P extends PortType>
Positive<P>getPositive(Class<P> portType)
Gets a positive (provided) instance of the given port.UUID
id()
<P extends PortType>
Positive<P>provided(Class<P> portType)
Gets a provided (positive) instance of the given port.<P extends PortType>
Negative<P>required(Class<P> portType)
Gets a required (negative) instance of the given port.Component.State
state()
-
Method Details
-
getPositive
Gets a positive (provided) instance of the given port.- Type Parameters:
P
- the type of the port type- Parameters:
portType
- the port type class instance- Returns:
- a positive instance of the port type
-
provided
Gets a provided (positive) instance of the given port. Same asgetPositive(Class)
.- Type Parameters:
P
- the type of the port type- Parameters:
portType
- the port type class instance- Returns:
- a provided instance of the port type
-
getNegative
Gets a negative (required) instance of the given port.- Type Parameters:
P
- the type of the port type- Parameters:
portType
- the port type class instance- Returns:
- a negative instance of the port type
-
required
Gets a required (negative) instance of the given port. Same asgetNegative(Class)
.- Type Parameters:
P
- the type of the port type- Parameters:
portType
- the port type class instance- Returns:
- a required instance of the port type
-
getControl
Gets the control.- Returns:
- the control port
-
control
- Returns:
- the component's control port.
-
getComponent
-
escalateFault
-
id
-
state
-