Class StateHandlerImplementation


  • public class StateHandlerImplementation
    extends Object
    StateHandlerImplementation realizes the access to and queries on the StateHandler Implementation extension point.
    • Constructor Detail

      • StateHandlerImplementation

        public StateHandlerImplementation()
        Constructor
    • 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 implementation
        subject - 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 implementation
        link - the current link
        Returns:
        true if the link is accepted and false otherwise