Examples of TaxonomyBuilder


Examples of name.abuchen.portfolio.TaxonomyBuilder

    @Test
    public void testSecuritiesWithoutAssignment()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addTo(client);

        Security a = new SecurityBuilder() //
                        .addPrice("2010-01-01", 1000) //
View Full Code Here

Examples of name.abuchen.portfolio.TaxonomyBuilder

    @Test
    public void testSecuritiesWithPartialAssignment()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addTo(client);

        Security a = new SecurityBuilder() //
                        .addPrice("2010-01-01", 1000) //
View Full Code Here

Examples of name.abuchen.portfolio.TaxonomyBuilder

    private Client createClient(int weight)
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("one") //
                        .addTo(client);

        Security security = new SecurityBuilder() //
                        .addPrice("2011-12-31", 100 * Values.Quote.factor()) //
View Full Code Here

Examples of name.abuchen.portfolio.TaxonomyBuilder

    @Test
    public void testThatSecuritiesAreGroupedIntoClassifications()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("equity") //
                        .addClassification("realestate") //
                        .addTo(client);
View Full Code Here

Examples of name.abuchen.portfolio.TaxonomyBuilder

    @Test
    public void testThatPartialAssignmentsAreSeparated()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("equity") //
                        .addTo(client);

        Security a = new SecurityBuilder() //
View Full Code Here

Examples of name.abuchen.portfolio.TaxonomyBuilder

    @Test
    public void testThatPartialAssignmentsInSubClassificationsAreMerged()
    {
        Client client = new Client();

        Taxonomy taxonomy = new TaxonomyBuilder() //
                        .addClassification("debt") //
                        .addClassification("debt", "cat1") //
                        .addClassification("debt", "cat2") //
                        .addTo(client);
View Full Code Here

Examples of org.mindswap.pellet.taxonomy.TaxonomyBuilder

  }

  public Taxonomy<ATermAppl> getHierarchy() {
    assertTrue( "Expressivity is not EL", kb.getExpressivity().isEL() );

    TaxonomyBuilder builder = null;
    try {
      builder = builderClass.newInstance();
      builder.setKB( kb );
    } catch( Exception e ) {
      throw new RuntimeException( e );
    }
builder.setProgressMonitor( new SilentProgressMonitor() );
    builder.classify();
    Taxonomy<ATermAppl> taxonomy = builder.getTaxonomy();
   
//     taxonomy.getTop().print();

    return taxonomy;
  }
View Full Code Here

Examples of org.mindswap.pellet.taxonomy.TaxonomyBuilder

  }

  public Taxonomy<ATermAppl> getHierarchy() {
    assertTrue( "Expressivity is not EL", kb.getExpressivity().isEL() );

    TaxonomyBuilder builder = null;
    try {
      builder = builderClass.newInstance();
      builder.setKB( kb );
    } catch( Exception e ) {
      throw new RuntimeException( e );
    }
builder.setProgressMonitor( new SilentProgressMonitor() );
    builder.classify();
    Taxonomy<ATermAppl> taxonomy = builder.getTaxonomy();
   
//     taxonomy.getTop().print();

    return taxonomy;
  }
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.