Package ptolemy.data

Examples of ptolemy.data.LongToken.longValue()


                ((BooleanToken) _checkpoint.get(0)).booleanValue();
        }

        if (_rollback.getWidth() > 0 && _rollback.hasToken(0)) {
            LongToken rollbackHandle = (LongToken) _rollback.get(0);
            _rollbackHandle = rollbackHandle.longValue();
        } else {
            _rollbackHandle = -1;
        }

        if (checkpointTrigger) {
View Full Code Here


                // Try to create a new [long] type with just one member.
                // The following conversion will fail if the member cannot
                // be converted to an int.
                LongToken singleMember = LongToken.convert(token);
                long[] matrix = new long[1];
                matrix[0] = singleMember.longValue();
                return new LongMatrixToken(matrix, 1, 1);
            }
        }
    }
View Full Code Here

     @exception IllegalActionException If there is no director.
     */
    public void fire() throws IllegalActionException {
        super.fire();
        LongToken inputToken = (LongToken) input.get(0);
        Long inputValue = Long.valueOf(inputToken.longValue());
        DoubleToken result = new DoubleToken(inputValue.doubleValue());

        output.send(0, result);
    }

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.