SCViewer/com.minres.scviewer.databas.../src/com/minres/scviewer/database/text/Generator.groovy

51 lines
1.4 KiB
Groovy

/*******************************************************************************
* Copyright (c) 2012 IT Just working.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IT Just working - initial API and implementation
*******************************************************************************/
package com.minres.scviewer.database.text
import java.util.ArrayList;
import java.util.List;
import com.minres.scviewer.database.ITrAttrType
import com.minres.scviewer.database.ITrAttribute;
import com.minres.scviewer.database.ITrGenerator;
import com.minres.scviewer.database.ITrStream;
import com.minres.scviewer.database.ITransaction;
class Generator implements ITrGenerator{
Long id
Stream stream
String name
Boolean active = false
ArrayList<ITransaction> transactions=[]
ArrayList<ITrAttrType> begin_attrs = []
int begin_attrs_idx = 0
ArrayList<ITrAttrType> end_attrs= []
int end_attrs_idx = 0
Generator(int id, Stream stream, name){
this.id=id
this.stream=stream
this.name=name
}
ITrStream getStream(){
return stream;
}
List<ITransaction> getTransactions(){
return transactions
}
Boolean isActive() {return active};
}