Examples of Coord


Examples of base.drawable.Coord

    public Primitive matchStartEvent( final RecHeader header,
                                      final RecRaw    raw )
    throws NoMatchingEventException
    {
        Obj_State state = new Obj_State( this.getCategory() );
        state.setStartVertex( new Coord( header.timestamp, header.taskID ) );
        partialstates.add( state );
        return null;
    }
View Full Code Here

Examples of base.drawable.Coord

        Iterator itr = partialstates.iterator();
        while ( itr.hasNext() ) {
            state = ( Obj_State ) itr.next();
            if ( state.getStartVertex().lineID == header.taskID ) {
                itr.remove();
                state.setFinalVertex( new Coord( header.timestamp,
                                                 header.taskID ) );
                return state;
            }
        }
        throw new NoMatchingEventException( "No matching State end-event "
View Full Code Here

Examples of base.drawable.Coord

    public Primitive matchStartEvent( final RecHeader header,
                                      final RecCargo  cargo )
    throws NoMatchingEventException
    {
        Obj_State state = new Obj_State( this.getCategory() );
        state.setStartVertex( new Coord( header.time, header.gthdLineID ) );
        if ( cargo != null ) // This is a precaution measure
            state.setInfoBuffer( cargo.bytes );
        partialstates.add( state );
        return null;
    }
View Full Code Here

Examples of base.drawable.Coord

        Iterator itr = partialstates.iterator();
        while ( itr.hasNext() ) {
            state = ( Obj_State ) itr.next();
            if ( state.getStartVertex().lineID == header.gthdLineID ) {
                itr.remove();
                state.setFinalVertex( new Coord( header.time,
                                                 header.gthdLineID ) );
                if ( cargo != null )
                    state.setInfoBuffer( cargo.bytes );
                    // ? need new copy of byte[] bytes for setInfoBuffer(), GC ?
                return state;
View Full Code Here

Examples of base.drawable.Coord

           etype would be added to the map replacing the existing CommProcThdID.
           If no more drawables of the same gthdLineID is found, the map would
           contain the last CommProcThdID with isUsed=false.  A bug!
        */
        CommProcThdID  cptID;
        Coord          key;
        int            thd;
        for ( thd = 0; thd < max_thread_count; thd++ ) {
             cptID = new CommProcThdID( comm, thd );
             key   = new Coord( 0.0, cptID.gthdLineID );
             if ( ! super.containsKey( key ) )
                 super.put( key, cptID );
        }
    }
View Full Code Here

Examples of base.drawable.Coord

            if (    arrow.getMsgTag() == msg.tag
                 && arrow.getStartProcessLineID() == header.getProcessLineID()
                 && arrow.getFinalProcessLineID() == msg.getProcessLineID()
               ) {
                itr.remove()// remove the partial arrow from recvs list
                arrow.setStartVertex( new Coord( header.time,
                                                 header.gthdLineID ) );
                arrow.setInfoBuffer();
                return arrow;
            }
        }

        // Set the StartVertex with header's time and gthdLineID.
        // Don't know the FinalVertex's time and gthdLineID yet.
        arrow = new Obj_Arrow( this.getCategory() );
        arrow.setStartVertex( new Coord( header.time, header.gthdLineID ) );
        arrow.setProcessLineIDs( header.getProcessLineID(),
                                 msg.getProcessLineID() );
        arrow.setMsgTag( msg.tag );
        // Arrow's msg size is determined by the send event NOT recv event
        arrow.setMsgSize( msg.size );
View Full Code Here

Examples of base.drawable.Coord

            if (    arrow.getMsgTag() == msg.tag
                 && arrow.getStartProcessLineID() == msg.getProcessLineID()
                 && arrow.getFinalProcessLineID() == header.getProcessLineID()
               ) {
                itr.remove()// remove the partial arrow from sends list
                arrow.setFinalVertex( new Coord( header.time,
                                                 header.gthdLineID ) );
                arrow.setInfoBuffer();
                return arrow;
            }
        }

        // Set the FinalVertex with header's time and gthdLineID.
        // Don't know the StartVertex's time and gthdLineID yet.
        arrow = new Obj_Arrow( this.getCategory() );
        arrow.setFinalVertex( new Coord( header.time, header.gthdLineID ) );
        arrow.setProcessLineIDs( msg.getProcessLineID(),
                                 header.getProcessLineID() );
        arrow.setMsgTag( msg.tag );
        recvs.add( arrow );
View Full Code Here

Examples of base.drawable.Coord

    public Primitive matchEvent( final RecHeader header,
                                 final RecCargo  cargo )
    throws NoMatchingEventException
    {
        Obj_Event event = new Obj_Event( this.getCategory() );
        event.setStartVertex( new Coord( header.time, header.gthdLineID ) );
        if ( cargo != null ) // This is a precaution measure
            event.setInfoBuffer( cargo.bytes );
        return event;
    }
View Full Code Here

Examples of base.drawable.Coord

            if (    arrow.getMsgTag() == raw.getMsgTag()
                 && arrow.getStartVertex().lineID == header.taskID
                 && arrow.getFinalVertex().lineID == raw.data
               ) {
                itr.remove()// remove the partial arrow from recvs list
                arrow.setStartVertex( new Coord( header.timestamp,
                                                 header.taskID ) );
                arrow.setInfoBuffer();
                return arrow;
            }
        }

        // Set the StartVertex with header's timestamp and taskID.
        // Initialize the FinalVertex with header.timestamp Temporarily
        arrow = new Obj_Arrow( this.getCategory() );
        arrow.setStartVertex( new Coord( header.timestamp,
                                         header.taskID ) );
        arrow.setFinalVertex( new Coord( header.timestamp, raw.data ) );
        arrow.setMsgTag( raw.getMsgTag() );
        // Arrow's msg size is determined by the send event NOT recv event
        arrow.setMsgSize( raw.getMsgSize() );
        sends.add( arrow );
View Full Code Here

Examples of base.drawable.Coord

            if (    arrow.getMsgTag() == raw.getMsgTag()
                 && arrow.getStartVertex().lineID == raw.data
                 && arrow.getFinalVertex().lineID == header.taskID
               ) {
                itr.remove()// remove the partial arrow from sends list
                arrow.setFinalVertex( new Coord( header.timestamp,
                                                 header.taskID ) );
                arrow.setInfoBuffer();
                return arrow;
            }
        }

        // Set the FinalVertex with header's timestamp and taskID.
        // Initialize the StartVertex with header.timestamp Temporarily
        arrow = new Obj_Arrow( this.getCategory() );
        arrow.setStartVertex( new Coord( header.timestamp, raw.data ) );
        arrow.setFinalVertex( new Coord( header.timestamp,
                                         header.taskID ) );
        arrow.setMsgTag( raw.getMsgTag() );
        recvs.add( arrow );

        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.