?? customtransset.java
字號(hào):
/**
* Title: XELOPES Data Mining Library
* Description: Java Data Mining API. Supported standarts: <a href="http://www.dmg.org">Predictive Model Markup Language (PMML 2.0) </a>; <a href="http://www.omg.org/cwm">DataMining specification for Common Warehouse Metamodel (OMG)</a>.
* Copyright: Copyright (c) 2002 Prudential Systems Software GmbH
* Company: <a href="mailto:valentine.stepanenko@zsoft.ru">ZSoft, Spb, Russia</a>
* @author Victor Borichev
* @author Valentine Stepanenko (valentine.stepanenko@zsoft.ru)
* @version 1.0
*/
package com.prudsys.pdm.Models.CustomerSeq.Algorithms;
import java.util.Vector;
import com.prudsys.pdm.Models.Sequential.Algorithms.Seq.TransactionSet;
public class CustomTransSet {
/** size of list of customer's sequences */
private int size;
/** list of customer's sequences */
private Vector transSetList;
/**
* Default constructor
* Creates empty list
*/
public CustomTransSet() {
size = 0;
transSetList = new Vector();
}
/**
* Add customer sequence to the list
* @param transSet customer sequence to add
*/
public void addCustomerTransSet(TransactionSet transSet) {
transSetList.add(transSet);
size++;
}
/**
* Get customer sequence at specified position
* @param index position of customer sequence
* @return customer sequence as TransactionSet
*/
public TransactionSet getCustomerTransSet(int index) {
return (TransactionSet)transSetList.get(index);
}
/**
* Clear list of customer sequences
*/
public void removeAllCustomerTransSets() {
transSetList.clear();
size = 0;
}
/**
* Get number of customer sequences in the list
* @return size of list as int
*/
public int getSize() {
return size;
}
/**
* print customer sequences
*/
public void print() {
for(int i=0;i<size;i++) ((TransactionSet)transSetList.get(i)).print();
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -