public abstract class ProducerConsumerBoard
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap<java.lang.String,Consumer> |
consumers |
(package private) java.lang.String |
modality |
(package private) java.util.HashMap<java.lang.String,java.util.ArrayList<Producer>> |
producers |
(package private) java.util.HashMap<java.lang.String,Provider> |
providers |
(package private) java.util.HashMap<java.lang.String,Receiver> |
receivers |
(package private) java.util.ArrayList<Supplier> |
suppliers |
(package private) java.util.HashMap<java.lang.String,java.util.ArrayList<Viewer>> |
viewers |
(package private) java.util.HashMap<java.lang.String,Visible> |
visibles |
Constructor and Description |
---|
ProducerConsumerBoard() |
Modifier and Type | Method and Description |
---|---|
void |
addConsumer(Consumer consumer,
java.lang.String flavor) |
void |
addProducer(Producer producer,
java.lang.String flavor) |
void |
addProvider(Provider provider,
java.lang.String flavor) |
void |
addReceiver(Receiver rec,
java.lang.String flavor) |
void |
addSupplier(Supplier sup) |
void |
addViewer(Viewer vwr,
java.lang.String flavor) |
void |
addVisible(Visible vbl,
java.lang.String flavor) |
private void |
checkConsumerSuppliers() |
private void |
checkReceiverProducers(Receiver rec,
java.lang.String flav) |
private boolean |
checkSuppliersFor(Consumer c,
java.lang.String item) |
private void |
checkViewers(java.lang.String flv,
Visible vbl) |
void |
connect(Producer producer,
Consumer consumer) |
void |
connectVisibleViewer(Visible vbl,
Viewer vwr) |
private void |
logUnresolved(java.util.HashMap<?,?> hm,
java.lang.String s,
java.lang.String boardID) |
void |
logUnresolved(java.lang.String boardID) |
void |
setModality(java.lang.String s) |
java.util.HashMap<java.lang.String,java.util.ArrayList<Producer>> producers
java.util.HashMap<java.lang.String,Consumer> consumers
java.util.HashMap<java.lang.String,Receiver> receivers
java.util.HashMap<java.lang.String,Provider> providers
java.util.HashMap<java.lang.String,Visible> visibles
java.util.HashMap<java.lang.String,java.util.ArrayList<Viewer>> viewers
java.util.ArrayList<Supplier> suppliers
java.lang.String modality
public void setModality(java.lang.String s)
public void addProducer(Producer producer, java.lang.String flavor)
public void addConsumer(Consumer consumer, java.lang.String flavor)
public void addReceiver(Receiver rec, java.lang.String flavor)
public void addSupplier(Supplier sup)
private void checkReceiverProducers(Receiver rec, java.lang.String flav)
private void checkConsumerSuppliers()
private boolean checkSuppliersFor(Consumer c, java.lang.String item)
public void logUnresolved(java.lang.String boardID)
private void logUnresolved(java.util.HashMap<?,?> hm, java.lang.String s, java.lang.String boardID)
public void addVisible(Visible vbl, java.lang.String flavor)
public void addViewer(Viewer vwr, java.lang.String flavor)
private void checkViewers(java.lang.String flv, Visible vbl)
public void addProvider(Provider provider, java.lang.String flavor)
Copyright © 2013. All Rights Reserved.