Examples of listStates()


Examples of ca.nengo.model.Probeable.listStates()

    AbstractMenuBuilder probesMenu = menu.addSubMenu("Add probe");
    boolean somethingFound = false;
    if (getModel() instanceof Probeable) {

      Probeable probeable = (Probeable) getModel();
      Properties states = probeable.listStates();

      // Enumeration e = states.elements();
      Iterator<?> it = states.entrySet().iterator();

      while (it.hasNext()) {
View Full Code Here

Examples of ca.nengo.model.Probeable.listStates()

    Iterator<String> it = myProbeables.keySet().iterator();
    while (it.hasNext()) {
      String key = it.next();
      Probeable p = myProbeables.get(key);
      String n = myProbeableStates.get(key);
      result.put(key, p.listStates().getProperty(n));
    }

    return result;
  }
 
View Full Code Here

Examples of ca.nengo.model.impl.FunctionInput.listStates()

  /*
   * Test method for 'ca.nengo.model.impl.FunctionInput.getHistory(String)'
   */
  public void testGetHistory() throws StructuralException, SimulationException {
    FunctionInput input = new FunctionInput("test", new Function[]{new ConstantFunction(1, 1f), new ConstantFunction(1, 2f)}, Units.UNK);
    assertEquals(1, input.listStates().size());
    assertTrue(input.listStates().get(FunctionInput.STATE_NAME) != null);
   
    assertEquals(1, input.getHistory(FunctionInput.STATE_NAME).getValues().length);
    assertTrue(input.getHistory(FunctionInput.STATE_NAME).getValues()[0][0] > .5f);
   
View Full Code Here

Examples of ca.nengo.model.impl.FunctionInput.listStates()

   * Test method for 'ca.nengo.model.impl.FunctionInput.getHistory(String)'
   */
  public void testGetHistory() throws StructuralException, SimulationException {
    FunctionInput input = new FunctionInput("test", new Function[]{new ConstantFunction(1, 1f), new ConstantFunction(1, 2f)}, Units.UNK);
    assertEquals(1, input.listStates().size());
    assertTrue(input.listStates().get(FunctionInput.STATE_NAME) != null);
   
    assertEquals(1, input.getHistory(FunctionInput.STATE_NAME).getValues().length);
    assertTrue(input.getHistory(FunctionInput.STATE_NAME).getValues()[0][0] > .5f);
   
    input.run(0f, 1f);
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

        RepositoryService impl = getServiceImplementation();
        RepositoryPackageService repositoryPackageService = getRepositoryPackageService();
        String uuid = impl.createState( "testStatus1" );
        assertNotNull( uuid );

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
                      states2.length );

        int match = 0;
        for ( int i = 0; i < states2.length; i++ ) {
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

    public void testStatus() throws Exception {
        RepositoryService impl = getService();
        String uuid = impl.createState( "testStatus1" );
        assertNotNull( uuid );

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
                      states2.length );

        int match = 0;
        for ( int i = 0; i < states2.length; i++ ) {
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

        RepositoryService impl = getServiceImplementation();
        RepositoryPackageService repositoryPackageService = getRepositoryPackageService();
        String uuid = impl.createState( "testStatus1" );
        assertNotNull( uuid );

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.listStates()

        String[] states = impl.listStates();
        assertTrue( states.length > 0 );

        impl.createState( "testStatus2" );
        String[] states2 = impl.listStates();
        assertEquals( states.length + 1,
                      states2.length );

        int match = 0;
        for ( int i = 0; i < states2.length; i++ ) {
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.