Package ptolemy.data

Examples of ptolemy.data.StringToken


                            "Failed to close '" + name + "'");
                }
            }
        }

        return new StringToken(result.toString());
    }
View Full Code Here


            for (int i = 0; i < array.length(); i++) {
                buffer.append(((StringToken) (array.getElement(i)))
                        .stringValue());
            }

            return new StringToken(buffer.toString());
        }

        Token result = array.getElement(0);

        for (int i = 1; i < array.length(); i++) {
View Full Code Here

        String valueString = ((StringToken) input.get(0)).stringValue();

        if (keyString.equals("EOF") && valueString.equals("EOF")) {
            return;
        }
        StringToken keyToken = new StringToken(keyString);
        StringToken valueToken = new StringToken(valueString);

        key.send(0, keyToken);
        value.send(0, valueToken);
    }
View Full Code Here

        } catch (Exception e) {
            throw new IllegalActionException(this, e,
                    "Unable to execute map method.");
        }
        for (KeyValuePair pair : output) {
            outputKey.send(0, new StringToken(pair.getKey()));
            outputValue.send(0, new StringToken(pair.getValue()));
        }
    }
View Full Code Here

     */
    public void fire() throws IllegalActionException {
        super.fire();

        if (input.hasToken(0)) {
            StringToken inputToken = (StringToken) input.get(0);
            String value = inputToken.stringValue();
            int length = value.length();
            output.send(0, new IntToken(length));
        }
    }
View Full Code Here

     */
    public void fire() throws IllegalActionException {
        super.fire();

        if (input.hasToken(0)) {
            StringToken inputToken = (StringToken) input.get(0);
            String value = inputToken.stringValue();
            output.send(0, new StringToken(_doFunction(value)));
        }
    }
View Full Code Here

            outputString = match.replaceAll(replacementValue);
        } else {
            outputString = match.replaceFirst(replacementValue);
        }

        output.send(0, new StringToken(outputString));
    }
View Full Code Here

        for (int i = 0; i < 5; i++) {
            sP.append(_alphaP[i] + " ");
        }

        paramAlphaP = new Parameter(this, "AlphaP", new StringToken(sP
                .toString()));

        StringBuffer sA = new StringBuffer();

        for (int i = 0; i < 3; i++) {
            sA.append(_alphaA[i] + " ");
        }

        paramAlphaA = new Parameter(this, "AlphaA", new StringToken(sA
                .toString()));

        _cAx = 9.8 / 25.0;
        paramCAx = new Parameter(this, "CAx", new DoubleToken(_cAx));
View Full Code Here

        for (int i = 0; i < 5; i++) {
            s.append(_alphaP[i] + " ");
        }

        paramAlphaP = new Parameter(this, "AlphaP", new StringToken(s
                .toString()));

        _cPx = 0.0;
        paramCPx = new Parameter(this, "CPx", new DoubleToken(_cPx));
View Full Code Here

        for (int i = 0; i < 4; i++) {
            sV.append(_alphaV[i] + " ");
        }

        paramAlphaV = new Parameter(this, "AlphaV", new StringToken(sV
                .toString()));

        _cVx = 4.7;
        paramCVx = new Parameter(this, "CVx", new DoubleToken(_cVx));
View Full Code Here

TOP

Related Classes of ptolemy.data.StringToken

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.