text
stringlengths
30
1.67M
<s> package com . actionbarsherlock . internal . view ; import com . actionbarsherlock . internal . view . menu . SubMenuWrapper ; import com . actionbarsherlock . view . ActionProvider ; import android . view . View ; public class ActionProviderWrapper extends android . view . ActionProvider { private final ActionProv...
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . Intent ; import android . graphics . drawable . Drawable ; import android . view . View ; import android . view . ContextMenu . ContextMenuInfo ; import com . actionbarsherlock . internal . view . ActionProviderWrapper ; import co...
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . Context ; import android . os . Parcelable ; import android . view . ViewGroup ; public interface MenuPresenter { public interface Callback { public void onCloseMenu ( MenuBuilder menu , boolean allMenusAreClosing ) ; public boole...
<s> package com . actionbarsherlock . internal . view . menu ; import java . util . WeakHashMap ; import android . content . ComponentName ; import android . content . Intent ; import android . view . KeyEvent ; import com . actionbarsherlock . view . Menu ; import com . actionbarsherlock . view . MenuItem ; import com...
<s> package com . actionbarsherlock . internal . view . menu ; import java . util . ArrayList ; import android . content . Context ; import android . os . Build ; import android . view . LayoutInflater ; import android . view . View ; import android . view . ViewGroup ; public abstract class BaseMenuPresenter implement...
<s> package com . actionbarsherlock . internal . view . menu ; import java . util . ArrayList ; import java . util . List ; import android . content . ComponentName ; import android . content . Context ; import android . content . Intent ; import android . content . pm . PackageManager ; import android . content . pm ....
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . Context ; import android . content . res . Configuration ; import android . graphics . Canvas ; import android . os . Build ; import android . util . AttributeSet ; import android . view . Gravity ; import android . view . View ; ...
<s> package com . actionbarsherlock . internal . view . menu ; import java . lang . ref . WeakReference ; import java . util . ArrayList ; import java . util . HashMap ; import java . util . List ; import java . util . concurrent . CopyOnWriteArrayList ; import android . content . ComponentName ; import android . conte...
<s> package com . actionbarsherlock . internal . view . menu ; import android . graphics . drawable . Drawable ; import android . view . View ; import com . actionbarsherlock . view . MenuItem ; import com . actionbarsherlock . view . SubMenu ; public class SubMenuWrapper extends MenuWrapper implements SubMenu { privat...
<s> package com . actionbarsherlock . internal . view . menu ; import java . util . ArrayList ; import android . content . Context ; import android . content . res . Resources ; import android . database . DataSetObserver ; import android . os . Parcelable ; import android . view . KeyEvent ; import android . view . La...
<s> package com . actionbarsherlock . internal . view . menu ; import java . util . HashSet ; import java . util . Set ; import android . content . Context ; import android . content . res . TypedArray ; import android . graphics . Rect ; import android . graphics . drawable . Drawable ; import android . os . Build ; i...
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . Context ; import android . content . Intent ; import android . graphics . drawable . Drawable ; import android . view . ContextMenu . ContextMenuInfo ; import android . view . View ; import com . actionbarsherlock . view . ActionP...
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . ActivityNotFoundException ; import android . content . Context ; import android . content . Intent ; import android . graphics . drawable . Drawable ; import android . util . Log ; import android . view . ContextMenu . ContextMenu...
<s> package com . actionbarsherlock . internal . view . menu ; import android . content . Context ; import android . graphics . drawable . Drawable ; import android . view . View ; import com . actionbarsherlock . view . Menu ; import com . actionbarsherlock . view . MenuItem ; import com . actionbarsherlock . view . S...
<s> package com . actionbarsherlock . internal . view . menu ; import com . actionbarsherlock . R ; import android . content . Context ; import android . content . res . TypedArray ; import android . graphics . drawable . Drawable ; import android . util . AttributeSet ; import android . view . LayoutInflater ; import ...
<s> package com . actionbarsherlock . internal . view . menu ; import static com . actionbarsherlock . internal . ResourcesCompat . getResources_getInteger ; import java . util . ArrayList ; import java . util . HashSet ; import java . util . Set ; import android . content . Context ; import android . content . res . C...
<s> package com . actionbarsherlock . internal . view . menu ; import android . graphics . drawable . Drawable ; public interface MenuView { public void initialize ( MenuBuilder menu ) ; public int getWindowAnimations ( ) ; public interface ItemView { public void initialize ( MenuItemImpl itemData , int menuType ) ; pu...
<s> package com . actionbarsherlock . internal . view ; public interface View_HasStateListenerSupport { void addOnAttachStateChangeListener ( View_OnAttachStateChangeListener listener ) ; void removeOnAttachStateChangeListener ( View_OnAttachStateChangeListener listener ) ; } </s>
<s> package com . actionbarsherlock . internal . view ; import android . content . Context ; import android . view . View ; import android . view . accessibility . AccessibilityEvent ; import java . lang . ref . WeakReference ; import com . actionbarsherlock . internal . view . menu . MenuBuilder ; import com . actionb...
<s> package com . actionbarsherlock . internal . view ; import android . view . View ; public interface View_OnAttachStateChangeListener { void onViewAttachedToWindow ( View v ) ; void onViewDetachedFromWindow ( View v ) ; } </s>
<s> package com . actionbarsherlock . internal ; import static android . view . ViewGroup . LayoutParams . MATCH_PARENT ; import static com . actionbarsherlock . internal . ResourcesCompat . getResources_getBoolean ; import java . util . ArrayList ; import java . util . HashMap ; import java . util . List ; import org ...
<s> package com . actionbarsherlock . internal . nineoldandroids . widget ; import android . content . Context ; import android . util . AttributeSet ; import android . widget . LinearLayout ; import com . actionbarsherlock . internal . nineoldandroids . view . animation . AnimatorProxy ; public class NineLinearLayout ...
<s> package com . actionbarsherlock . internal . nineoldandroids . widget ; import android . content . Context ; import android . widget . HorizontalScrollView ; import com . actionbarsherlock . internal . nineoldandroids . view . animation . AnimatorProxy ; public class NineHorizontalScrollView extends HorizontalScrol...
<s> package com . actionbarsherlock . internal . nineoldandroids . widget ; import android . content . Context ; import android . util . AttributeSet ; import android . widget . FrameLayout ; import com . actionbarsherlock . internal . nineoldandroids . view . animation . AnimatorProxy ; public class NineFrameLayout ex...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import java . util . ArrayList ; import android . view . animation . Interpolator ; public abstract class Animator implements Cloneable { ArrayList < AnimatorListener > mListeners = null ; public void start ( ) { } public void cancel ( ) { }...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import android . util . Log ; import java . lang . reflect . InvocationTargetException ; import java . lang . reflect . Method ; import java . util . HashMap ; import java . util . concurrent . locks . ReentrantReadWriteLock ; @ SuppressWarn...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import java . util . ArrayList ; import java . util . Arrays ; import android . view . animation . Interpolator ; import com . actionbarsherlock . internal . nineoldandroids . animation . Keyframe . FloatKeyframe ; import com . actionbarsher...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; public class IntEvaluator implements TypeEvaluator < Integer > { public Integer evaluate ( float fraction , Integer startValue , Integer endValue ) { int startInt = startValue ; return ( int ) ( startInt + fraction * ( endValue - startInt ) ...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import java . util . ArrayList ; import android . view . animation . Interpolator ; import com . actionbarsherlock . internal . nineoldandroids . animation . Keyframe . IntKeyframe ; @ SuppressWarnings ( "<STR_LIT:unchecked>" ) class IntKeyf...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; public abstract class AnimatorListenerAdapter implements Animator . AnimatorListener { @ Override public void onAnimationCancel ( Animator animation ) { } @ Override public void onAnimationEnd ( Animator animation ) { } @ Override public voi...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import android . os . Handler ; import android . os . Looper ; import android . os . Message ; import android . util . AndroidRuntimeException ; import android . view . animation . AccelerateDecelerateInterpolator ; import android . view . a...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; public interface TypeEvaluator < T > { public T evaluate ( float fraction , T startValue , T endValue ) ; } </s>
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import android . util . Log ; import java . util . ArrayList ; @ SuppressWarnings ( "<STR_LIT:rawtypes>" ) public final class ObjectAnimator extends ValueAnimator { private static final boolean DBG = false ; private Object mTarget ; private ...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import java . util . ArrayList ; import android . view . animation . Interpolator ; import com . actionbarsherlock . internal . nineoldandroids . animation . Keyframe . FloatKeyframe ; @ SuppressWarnings ( "<STR_LIT:unchecked>" ) class Float...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import android . view . animation . Interpolator ; @ SuppressWarnings ( "<STR_LIT:rawtypes>" ) public abstract class Keyframe implements Cloneable { float mFraction ; Class mValueType ; private Interpolator mInterpolator = null ; boolean mHa...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; import java . util . ArrayList ; import java . util . Collection ; import java . util . HashMap ; import java . util . List ; import android . view . animation . Interpolator ; @ SuppressWarnings ( "<STR_LIT:unchecked>" ) public final class ...
<s> package com . actionbarsherlock . internal . nineoldandroids . animation ; public class FloatEvaluator implements TypeEvaluator < Number > { public Float evaluate ( float fraction , Number startValue , Number endValue ) { float startFloat = startValue . floatValue ( ) ; return startFloat + fraction * ( endValue . f...
<s> package com . actionbarsherlock . internal . nineoldandroids . view ; import android . content . Context ; import android . util . AttributeSet ; import android . view . ViewGroup ; import com . actionbarsherlock . internal . nineoldandroids . view . animation . AnimatorProxy ; public abstract class NineViewGroup e...
<s> package com . actionbarsherlock . internal . nineoldandroids . view . animation ; import java . lang . ref . WeakReference ; import java . util . WeakHashMap ; import android . graphics . Matrix ; import android . graphics . RectF ; import android . os . Build ; import android . util . FloatMath ; import android . ...
<s> package com . actionbarsherlock . internal . app ; import java . util . HashSet ; import java . util . Set ; import android . app . Activity ; import android . content . Context ; import android . graphics . drawable . Drawable ; import android . support . v4 . app . FragmentTransaction ; import android . view . Vi...
<s> package com . actionbarsherlock . internal . app ; import java . lang . ref . WeakReference ; import java . util . ArrayList ; import android . app . Activity ; import android . app . Dialog ; import android . content . Context ; import android . content . res . Configuration ; import android . content . res . Reso...
<s> package com . actionbarsherlock . internal ; import com . actionbarsherlock . ActionBarSherlock ; import com . actionbarsherlock . app . ActionBar ; import com . actionbarsherlock . internal . app . ActionBarWrapper ; import com . actionbarsherlock . internal . view . menu . MenuWrapper ; import com . actionbarsher...
<s> package com . actionbarsherlock . internal ; import android . content . Context ; import android . os . Build ; import android . util . DisplayMetrics ; import com . actionbarsherlock . R ; public final class ResourcesCompat { private ResourcesCompat ( ) { } public static boolean getResources_getBoolean ( Context c...
<s> package com . actionbarsherlock . app ; import android . app . Activity ; import android . content . res . Configuration ; import android . os . Bundle ; import android . view . KeyEvent ; import android . view . View ; import android . view . Window ; import android . view . ViewGroup . LayoutParams ; import com ....
<s> package com . actionbarsherlock . app ; import android . content . Context ; import android . graphics . drawable . Drawable ; import android . support . v4 . app . FragmentTransaction ; import android . util . AttributeSet ; import android . view . Gravity ; import android . view . View ; import android . view . V...
<s> package com . actionbarsherlock . app ; import android . app . Activity ; import android . support . v4 . app . ListFragment ; import com . actionbarsherlock . internal . view . menu . MenuItemWrapper ; import com . actionbarsherlock . internal . view . menu . MenuWrapper ; import com . actionbarsherlock . view . M...
<s> package com . actionbarsherlock . app ; import android . app . ExpandableListActivity ; import android . content . res . Configuration ; import android . os . Bundle ; import android . view . KeyEvent ; import android . view . View ; import android . view . ViewGroup . LayoutParams ; import android . view . Window ...
<s> package com . actionbarsherlock . app ; import android . content . res . Configuration ; import android . os . Bundle ; import android . support . v4 . app . _ActionBarSherlockTrojanHorse ; import android . util . Log ; import android . view . KeyEvent ; import android . view . View ; import android . view . ViewGr...
<s> package com . actionbarsherlock . app ; import android . app . Activity ; import android . support . v4 . app . Fragment ; import com . actionbarsherlock . internal . view . menu . MenuItemWrapper ; import com . actionbarsherlock . internal . view . menu . MenuWrapper ; import com . actionbarsherlock . view . Menu ...
<s> package com . actionbarsherlock . app ; import android . content . res . Configuration ; import android . os . Bundle ; import android . preference . PreferenceActivity ; import android . view . KeyEvent ; import android . view . View ; import android . view . ViewGroup . LayoutParams ; import android . view . Wind...
<s> package com . actionbarsherlock . app ; import android . app . ListActivity ; import android . content . res . Configuration ; import android . os . Bundle ; import android . view . KeyEvent ; import android . view . View ; import android . view . Window ; import android . view . ViewGroup . LayoutParams ; import c...
<s> package com . actionbarsherlock . app ; import android . app . Activity ; import android . support . v4 . app . DialogFragment ; import com . actionbarsherlock . internal . view . menu . MenuItemWrapper ; import com . actionbarsherlock . internal . view . menu . MenuWrapper ; import com . actionbarsherlock . view ....
<s> package com . actionbarsherlock ; import static android . view . ViewGroup . LayoutParams . MATCH_PARENT ; import java . lang . annotation . ElementType ; import java . lang . annotation . Retention ; import java . lang . annotation . RetentionPolicy ; import java . lang . annotation . Target ; import java . lang ....
<s> package com . actionbarsherlock . widget ; import android . content . ComponentName ; import android . content . Context ; import android . content . Intent ; import android . content . pm . ResolveInfo ; import android . database . DataSetObservable ; import android . os . Handler ; import android . text . TextUti...
<s> package com . actionbarsherlock . widget ; import android . os . Build ; import com . actionbarsherlock . R ; import com . actionbarsherlock . internal . widget . IcsLinearLayout ; import com . actionbarsherlock . internal . widget . IcsListPopupWindow ; import com . actionbarsherlock . view . ActionProvider ; impo...
<s> package com . actionbarsherlock . widget ; import android . content . Context ; import android . content . Intent ; import android . content . pm . PackageManager ; import android . content . pm . ResolveInfo ; import android . graphics . drawable . Drawable ; import android . util . TypedValue ; import android . v...
<s> package android . support . v4 . app ; import android . util . Log ; import android . view . View ; import android . view . Window ; import com . actionbarsherlock . ActionBarSherlock . OnCreatePanelMenuListener ; import com . actionbarsherlock . ActionBarSherlock . OnMenuItemSelectedListener ; import com . actionb...
<s> package gov . in . bloomington . georeporter . adapters ; import gov . in . bloomington . georeporter . models . Open311 ; import android . content . Context ; import android . view . LayoutInflater ; import android . view . View ; import android . view . ViewGroup ; import android . widget . BaseAdapter ; import a...
<s> package gov . in . bloomington . georeporter . adapters ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . georeporter . models . Open311 ; import gov . in . bloomington . georeporter . models . Preferences ; import org . json . JSONArray ; import org . json . JSONObject ; import an...
<s> package gov . in . bloomington . georeporter . adapters ; import org . json . JSONObject ; import android . content . Context ; import android . content . res . Resources ; import android . view . View ; import android . view . ViewGroup ; import android . view . LayoutInflater ; import android . widget . BaseAdapt...
<s> package gov . in . bloomington . georeporter . adapters ; import gov . in . bloomington . georeporter . models . Open311 ; import org . json . JSONArray ; import org . json . JSONException ; import org . json . JSONObject ; import android . content . Context ; import android . view . LayoutInflater ; import android...
<s> package gov . in . bloomington . georeporter . adapters ; import gov . in . bloomington . georeporter . models . Open311 ; import java . util . ArrayList ; import org . json . JSONObject ; import android . content . Context ; import android . view . LayoutInflater ; import android . view . View ; import android . v...
<s> package gov . in . bloomington . georeporter . models ; import java . io . FileInputStream ; import java . io . FileNotFoundException ; import java . io . FileOutputStream ; import java . io . IOException ; import java . io . UnsupportedEncodingException ; import java . util . ArrayList ; import java . util . HashM...
<s> package gov . in . bloomington . georeporter . models ; import org . json . JSONException ; import org . json . JSONObject ; import android . content . Context ; import android . content . SharedPreferences ; public class Preferences { private static final String SETTINGS = "<STR_LIT>" ; private static final String...
<s> package gov . in . bloomington . georeporter . dialogs ; import java . util . Calendar ; import android . app . DatePickerDialog ; import android . app . Dialog ; import android . app . DatePickerDialog . OnDateSetListener ; import android . os . Bundle ; import android . text . format . DateFormat ; import android...
<s> package gov . in . bloomington . georeporter . tasks ; import java . io . IOException ; import java . util . List ; import java . util . Locale ; import com . google . android . maps . GeoPoint ; import android . content . Context ; import android . location . Address ; import android . location . Geocoder ; import...
<s> package gov . in . bloomington . georeporter . util ; import gov . in . bloomington . georeporter . R ; import java . io . BufferedReader ; import java . io . IOException ; import java . io . InputStream ; import java . io . InputStreamReader ; import android . app . AlertDialog ; import android . content . Context...
<s> package gov . in . bloomington . georeporter . fragments ; import java . text . DateFormat ; import java . text . ParseException ; import java . text . SimpleDateFormat ; import java . util . Date ; import java . util . HashMap ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . geor...
<s> package gov . in . bloomington . georeporter . fragments ; import gov . in . bloomington . georeporter . adapters . GroupsAdapter ; import gov . in . bloomington . georeporter . models . Open311 ; import android . app . Activity ; import android . view . View ; import android . widget . ListView ; import com . acti...
<s> package gov . in . bloomington . georeporter . fragments ; import gov . in . bloomington . georeporter . adapters . ServicesAdapter ; import java . util . ArrayList ; import org . json . JSONObject ; import android . app . Activity ; import android . view . View ; import android . widget . ListView ; import com . a...
<s> package gov . in . bloomington . georeporter . fragments ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . georeporter . activities . MainActivity ; import gov . in . bloomington . georeporter . adapters . ServersAdapter ; import gov . in . bloomington . georeporter . models . Pref...
<s> package gov . in . bloomington . georeporter . fragments ; import gov . in . bloomington . georeporter . adapters . PersonalInfoAdapter ; import gov . in . bloomington . georeporter . models . Preferences ; import org . json . JSONException ; import org . json . JSONObject ; import android . app . AlertDialog ; imp...
<s> package gov . in . bloomington . georeporter . fragments ; import gov . in . bloomington . georeporter . adapters . SavedReportsAdapter ; import gov . in . bloomington . georeporter . models . Open311 ; import android . os . Bundle ; import com . actionbarsherlock . app . SherlockListFragment ; public class SavedRe...
<s> package gov . in . bloomington . georeporter . activities ; import gov . in . bloomington . georeporter . R ; import android . os . Bundle ; import android . support . v4 . app . FragmentTransaction ; import com . actionbarsherlock . app . ActionBar ; import com . actionbarsherlock . app . ActionBar . Tab ; import ...
<s> package gov . in . bloomington . georeporter . activities ; import org . json . JSONObject ; import android . app . ProgressDialog ; import android . content . Intent ; import android . os . AsyncTask ; import android . os . Bundle ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . ...
<s> package gov . in . bloomington . georeporter . activities ; import gov . in . bloomington . georeporter . R ; import android . os . Bundle ; public class SavedReportsActivity extends BaseFragmentActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; g...
<s> package gov . in . bloomington . georeporter . activities ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . georeporter . models . Open311 ; import android . content . Intent ; import android . location . Criteria ; import android . location . Location ; import android . location ....
<s> package gov . in . bloomington . georeporter . activities ; import gov . in . bloomington . georeporter . R ; import android . content . Intent ; import android . os . Bundle ; import com . actionbarsherlock . app . SherlockFragmentActivity ; import com . actionbarsherlock . view . Menu ; import com . actionbarsher...
<s> package gov . in . bloomington . georeporter . activities ; import gov . in . bloomington . georeporter . R ; import android . content . Intent ; import android . os . Bundle ; import com . actionbarsherlock . app . SherlockActivity ; import com . actionbarsherlock . view . Menu ; import com . actionbarsherlock . v...
<s> package gov . in . bloomington . georeporter . activities ; import org . json . JSONObject ; import gov . in . bloomington . georeporter . R ; import gov . in . bloomington . georeporter . fragments . ChooseGroupFragment ; import gov . in . bloomington . georeporter . fragments . ChooseServiceFragment ; import gov ...
<s> package org . jm . swagger ; import java . util . HashSet ; import java . util . List ; import java . util . Map ; import java . util . Map . Entry ; import java . util . Set ; import org . jm . spring . controller . EndpointDocumentationController ; import org . springframework . core . LocalVariableTableParameter...
<s> package org . jm . spring . controller ; import javax . servlet . http . HttpServletRequest ; import org . jm . swagger . SpringMVCAPIReader ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . http . MediaType ; import org . springframework . stereotype . Contr...
<s> package org . jm . spring . controller . test ; import javax . servlet . http . HttpServletResponse ; import junit . framework . Assert ; import org . codehaus . jackson . map . ObjectMapper ; import org . jm . swagger . SpringMVCAPIReader ; import org . junit . Before ; import org . junit . Test ; import org . spr...
<s> package com . smartgrid . messenger ; import java . util . Map ; public interface Messenger < T > { public Integer [ ] memberIds ( ) ; public < ResponseType , MessageType > ResponseType message ( Integer id , Message < MessageType > m ) ; public < ResponseType , MessageType > Map < Integer , ResponseType > messageM...
<s> package com . smartgrid . messenger ; import java . util . ArrayList ; import java . lang . Class ; import java . util . Iterator ; public final class Message < T > { private String methodName ; private T content ; private Class contentType ; public Message ( String m , T c ) { methodName = m ; content = c ; if ( c...
<s> package com . smartgrid . messenger ; import java . util . Map ; import java . util . HashMap ; import java . util . ArrayList ; import java . lang . reflect . InvocationTargetException ; import java . lang . reflect . Method ; import com . smartgrid . messenger . Message ; public final class MessengerBasic < T > i...
<s> package com . smartgrid . policies ; public interface Appliance { public Double getDemand ( ) ; public String getName ( ) ; public Integer getId ( ) ; } </s>
<s> package com . smartgrid . policies ; import java . util . ArrayList ; import java . util . Date ; import java . util . List ; import com . smartgrid . policies . Appliance ; import com . smartgrid . policies . GenericAppliance ; import com . smartgrid . app . CustomMessage ; public class CustomHouseholdPolicy imple...
<s> package com . smartgrid . policies ; import java . util . Date ; import java . util . Map ; import com . smartgrid . app . Aggregator ; public class CustomAggregatorPolicy implements AggregatorPolicy { private final String PolicyName = "<STR_LIT>" ; private final Double PolicyVersion = <NUM_LIT:1.0> ; private final...
<s> package com . smartgrid . policies ; public class GenericAppliance implements Appliance { private Integer id ; private Double demand ; public GenericAppliance ( Integer id , Double demand ) { this . id = id ; this . demand = demand ; } public Double getDemand ( ) { return this . demand ; } public String getName ( )...
<s> package com . smartgrid . policies ; import java . util . Date ; import java . util . List ; import com . smartgrid . policies . Appliance ; import com . smartgrid . app . CustomMessage ; public interface HouseholdPolicy { public void tick ( Date date ) ; public String getPolicyAuthor ( ) ; public String getPolicyN...
<s> package com . smartgrid . policies ; import com . smartgrid . app . Aggregator ; import java . util . Date ; public interface AggregatorPolicy { public String getPolicyName ( ) ; public Double getPolicyVersion ( ) ; public String getPolicyAuthor ( ) ; public void tick ( Date date , Aggregator aggregator ) ; public ...
<s> package com . smartgrid . app ; import com . smartgrid . app . Simulator ; import com . smartgrid . app . Logger ; import com . smartgrid . policies . AggregatorPolicy ; import com . smartgrid . policies . CustomAggregatorPolicy ; import com . smartgrid . policies . CustomHouseholdPolicy ; import com . smartgrid . ...
<s> package com . smartgrid . app ; import com . smartgrid . messenger . Message ; import com . smartgrid . messenger . Messenger ; import com . smartgrid . messenger . MessengerBasic ; import com . smartgrid . policies . Appliance ; import com . smartgrid . app . Household ; import java . util . Date ; import java . u...
<s> package com . smartgrid . app ; import java . util . HashMap ; import java . util . Date ; import com . smartgrid . app . Aggregator ; import com . smartgrid . messenger . Message ; import com . smartgrid . messenger . Messenger ; import com . smartgrid . messenger . MessengerBasic ; import com . smartgrid . polici...
<s> package com . smartgrid . app ; import com . smartgrid . policies . Appliance ; import com . smartgrid . policies . HouseholdPolicy ; import java . util . Date ; import java . util . List ; public class Household { private Integer householdId ; private HouseholdPolicy policy ; public Household ( Integer householdId...
<s> package com . smartgrid . app ; public abstract class CustomMessage { } </s>
<s> package com . smartgrid . app ; import java . sql . Connection ; import java . sql . DriverManager ; import java . sql . SQLException ; import java . sql . Statement ; import java . sql . Timestamp ; import java . util . Date ; public class Logger { private Connection con ; private String connectionURL ; private St...
<s> package com . smartgrid . messenger ; import com . smartgrid . messenger . MessengerBasic ; import java . util . HashMap ; import java . util . Map ; import junit . framework . Test ; import junit . framework . TestCase ; import junit . framework . TestSuite ; class Person { private String name ; public Person ( St...
<s> package com . smartgrid . app ; import junit . framework . Test ; import junit . framework . TestCase ; import junit . framework . TestSuite ; public class AppTest extends TestCase { public AppTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return new TestSuite ( AppTest . class ) ;...