addReactionToMedium() 공개 메소드

public addReactionToMedium ( int mediumId, IReaction, reaction ) : void
mediumId int
reaction IReaction,
리턴 void
예제 #1
0
    public void addToReactionEngine(int mediumID, ReactionEngine reactionEngine)
    {
        Debug.Log("module promoter: "+_promoterName);

        PromoterProprieties proprieties = getProprieties();
        Debug.Log("proprieties="+proprieties.ToString());

        IReaction reaction = Promoter.buildPromoterFromProps(proprieties);
        Debug.Log("reaction="+reaction);

        reactionEngine.addReactionToMedium(mediumID, reaction);
    }
예제 #2
0
    private void addToReactionEngine(Device device)
    {
        Logger.Log("Equipment::addToReactionEngine reactions from device " + device.getInternalName() + " (" + device.ToString() + ")", Logger.Level.TRACE);

        LinkedList <IReaction> reactions = device.getReactions();

        Logger.Log("Equipment::addToReactionEngine reactions=" + Logger.ToString <IReaction>(reactions) + " from " + device, Logger.Level.INFO);

        foreach (IReaction reaction in reactions)
        {
            Logger.Log("Equipment::addToReactionEngine adding reaction=" + reaction, Logger.Level.TRACE);
            _reactionEngine.addReactionToMedium(_celliaMediumID, reaction);
        }
    }