congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GraphCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
GraphCollection
in
ingenias.generator.browser

Best Java code snippets using ingenias.generator.browser.GraphCollection (Showing top 4 results out of 315)

origin: net.sf.ingenias/editor

} else
  if (colValue1!=null && colValue2!=null &&
  colValue1.size()==colValue2.size()){
    Vector<String> cdifferences = new Vector<String>();
    for (int l=0;l<colValue1.size();l++){
      try {
        cdifferences.addAll(checkEntity(colValue1.getElementAt(l), 
            colValue2.getElementAt(l), 
            alreadyVerified));
      } catch (NullEntity e) {
  } else {
    differences.add("entity " +ent1.getID()+":"+ent1.getType()+" has not the same number of values for attribute "+
        gaE1.getName()+" with "+colValue1.size()+" instead the second spec has "+colValue2.size()+" elements");
origin: net.sf.phat/phat-generator

public static String getValue(GraphAttribute attribute) {
  if (attribute.isCollectionValue()) {
    try {
      return replaceBadChars(attribute.getCollectionValue().getElementAt(0).getID());
    } catch (NullEntity ex) {
      Logger.getLogger(TaskGenerator.class.getName()).log(Level.SEVERE, null, ex);
    }
  }
  if(attribute.isEntityValue()) {
    return replaceBadChars(attribute.getSimpleValue());
  }
  return attribute.getSimpleValue();
}

origin: net.sf.phat/phat-generator

private void generateDeviceAgentsInitialization(Graph simDiag, Repeat simInitRep)
    throws NullEntity, NotFound {
  for (GraphEntity progPool : Utils.getEntities(simDiag, INIT_PROGRAM_POOL)) {
    for (GraphEntity deviceEntity : Utils.getTargetsEntity(progPool, "device")) {
      Repeat importADLRep = new Repeat("importDevices");
      simInitRep.add(importADLRep);
      String deviceId = deviceEntity.getID();
      Repeat agentRep = new Repeat("deviceAgentRep");
      simInitRep.add(agentRep);
      simInitRep.add(new Var("daID", deviceId));
      GraphCollection gc = progPool.getAttributeByName("ProgramPoolField").getCollectionValue();
      for (int i = 0; i < gc.size(); i++) {
        String progId = gc.getElementAt(i).getAttributeByName("modelID").getSimpleValue();
        Repeat progRep = new Repeat("progsRep");
        progRep.add(new Var("progId", progId));
        agentRep.add(progRep);
      }
    }
  }
}
origin: net.sf.phat/phat-generator

GraphAttribute filters = filter.getAttributeByName(TASK_ALLOWED);
GraphCollection filterCollection = filters.getCollectionValue();
for (int i = 0; i < filterCollection.size(); i++) {
  GraphEntity ge = filterCollection.getElementAt(i);
  GraphAttribute filterRef = ge.getAttributeByName("modelID");
  String filterDiagName = filterRef.getSimpleValue();
ingenias.generator.browserGraphCollection

Most used methods

  • getElementAt
  • size

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now