Class StateHandlerImplementation
- java.lang.Object
-
- UncertaintyVariationModel.statehandler.util.StateHandlerImplementation
-
public class StateHandlerImplementation extends Object
StateHandlerImplementation realizes the access to and queries on the StateHandler Implementation extension point.
-
-
Constructor Summary
Constructors Constructor Description StateHandlerImplementation()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getIds()
returns all known ids.Optional<StateHandler>
getImplemationOf(String stateHandlerId)
creates and returns an optional implementation corresponding to a given id.boolean
isAccecptedSubjectByImplementation(String stateHandlerId, de.uka.ipd.sdq.identifier.Identifier subject)
returns the decision whether or not a subject is accepted by the current implementation.boolean
isAcceptedLinkByImplementation(String stateHandlerId, de.uka.ipd.sdq.identifier.Identifier link)
returns the decision whether or not a link is accepted by the current implementation.
-
-
-
Method Detail
-
getImplemationOf
public Optional<StateHandler> getImplemationOf(String stateHandlerId)
creates and returns an optional implementation corresponding to a given id.- Parameters:
stateHandlerId
- the id of the implementation- Returns:
- the created optional implementation of the StateHandler
-
getIds
public List<String> getIds()
returns all known ids.- Returns:
- list of ids corresponding to the StateHandler implementations
-
isAccecptedSubjectByImplementation
public boolean isAccecptedSubjectByImplementation(String stateHandlerId, de.uka.ipd.sdq.identifier.Identifier subject)
returns the decision whether or not a subject is accepted by the current implementation.- Parameters:
stateHandlerId
- the id of the current implementationsubject
- the current subject- Returns:
- true if the subject is accepted and false otherwise
-
isAcceptedLinkByImplementation
public boolean isAcceptedLinkByImplementation(String stateHandlerId, de.uka.ipd.sdq.identifier.Identifier link)
returns the decision whether or not a link is accepted by the current implementation.- Parameters:
stateHandlerId
- the id of the current implementationlink
- the current link- Returns:
- true if the link is accepted and false otherwise
-
-