Package avrora.sim

Examples of avrora.sim.InterruptTable$Notification


        Mon(Simulator s) {
            this.simulator = s;
            props = simulator.getMicrocontroller().getProperties();
            interpreter = s.getInterpreter();
            interruptBase = interpreter.getInterruptBase();
            InterruptTable itable = interpreter.getInterruptTable();
            itable.insertProbe(new InterruptProbe());

            stack = new String[MAX_STACK_DEPTH];
            stack[0] = "";

            Program p = s.getProgram();
View Full Code Here


        boolean invokeOnly;

        Mon(Simulator s) {
            simulator = s;
            props = simulator.getMicrocontroller().getProperties();
            InterruptTable interruptTable = simulator.getInterpreter().getInterruptTable();
            interruptTable.insertProbe(this);
            interrupts = interruptTable;
            int numInts = interrupts.getNumberOfInterrupts();
            invocations = new long[numInts];
            lastInvoke = new long[numInts];
            lastPost = new long[numInts];
View Full Code Here

        final ATMegaFamily.FlagBit RXC_flag;

        byte value;

        public ControlRegisterA() {
            InterruptTable it = USART.this.interpreter.getInterruptTable();
            UDRE_flag = new ATMegaFamily.FlagBit(it, false, properties.USART_UDRE_inum);
            TXC_flag = new ATMegaFamily.FlagBit(it, true, properties.USART_TX_inum);
            RXC_flag = new ATMegaFamily.FlagBit(it, false, properties.USART_RX_inum);
            // user data register is empty initially
            UDRE_flag.flag();
View Full Code Here

            Simulation.Node node = (Simulation.Node) extSync.getNodeMap().get(new Integer(nodeId));
            if (node == null) Avrora.userError("Not a valid NodeID: "+nodeId);
           
            Simulator       sim         = node.getSimulator();
            BaseInterpreter interpreter = sim.getInterpreter();
            InterruptTable  intTable    = interpreter.getInterruptTable();
           
            // Fire interrupt again
            extSync.enableInterrupt(nodeId);
           
          }
View Full Code Here

    ExternalContentV2 content = request.getContent();
    Assert.assertEquals( message.getMessageTitle(), content.getMessageTitle() );
    Assert.assertEquals( message.getMessageBody(), content.getMessageBody() );
    Assert.assertEquals( message.getMessageSummary(), content.getMessageSummary() );
    Assert.assertEquals( settings.getLanguageCode(), content.getLanguageCode() );
    Notification notification = request.getNotifications().getNotification().get( 0 );
    List<ReceiverEndPoint> receiverEndPoints = notification.getReceiverEndPoints().getReceiverEndPoint();
    for (ReceiverEndPoint receiverEndPoint : receiverEndPoints) {
      TransportType transportType = receiverEndPoint.getTransportType();
      if (TransportType.EMAIL.equals( transportType )) {
      } else if (TransportType.SMS.equals( transportType )) {
      } else {
View Full Code Here

    public void commitOperation(
        @WebParam(name = "Commit", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification commit = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

    public void rollbackOperation(
        @WebParam(name = "Rollback", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification rollback = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

    public void committedOperation(
        @WebParam(name = "Committed", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification committed = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

    public void abortedOperation(
        @WebParam(name = "Aborted", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification aborted = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

    public void prepareOperation(
        @WebParam(name = "Prepare", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification prepare = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

TOP

Related Classes of avrora.sim.InterruptTable$Notification

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.