All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ajjpj.asysmon.data.AHierarchicalDataRoot Maven / Gradle / Ivy

There is a newer version: 1.0-pre28
Show newest version
package com.ajjpj.asysmon.data;

import com.ajjpj.abase.util.AUUID;

import java.util.ArrayList;
import java.util.Collection;


/**
 * @author arno
 */
public class AHierarchicalDataRoot {
    private final AUUID uuid = AUUID.createRandom();
    private final Collection startedFlows;
    private final Collection joinedFlows;
    private final AHierarchicalData root;

    public AHierarchicalDataRoot(AHierarchicalData root, Collection startedFlows, Collection joinedFlows) {
        this.startedFlows = new ArrayList(startedFlows);
        this.joinedFlows = new ArrayList(joinedFlows);
        this.root = root;
    }

    public AUUID getUuid() {
        return uuid;
    }

    public Collection getStartedFlows() {
        return startedFlows;
    }

    public Collection getJoinedFlows() {
        return joinedFlows;
    }

    public AHierarchicalData getRootNode() {
        return root;
    }

    @Override
    public String toString() {
        return "AHierarchicalDataRoot{" +
                "startedFlows=" + startedFlows +
                ", joinedFlows=" + joinedFlows +
                ", root=" + root +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy